• Please provide me your exact firmware. (if possible) becaue I'm using 4mb version that may be differ from yours.

    Espruino branch: master

    >process.env
    ={
      VERSION: "1v99.4128",
      GIT_COMMIT: "5b447a61",
      BOARD: "ESP8266_4MB",
      FLASH: 0, RAM: 81920,
      SERIAL: "5ccf7fc1-120b",
      CONSOLE: "Telnet",
      MODULES: "Flash,Storage,net" ... "r,crypto,neopixel",
      EXPTR: 1073643636 }
    > 
    

    try this snippet too:

    var status=0;
    var i=0;
    function swap() {
      i++;
      status = !status;
      console.log(i,"data",Date().toString());
    }
    
    Serial1.on('data', function (data) { swap(); });
    
    
About

Avatar for MaBe @MaBe started