You are reading a single comment by @d0773d and its replies. Click here to read the full conversation.
  • When I type save() I receive:

    =undefined
    Erasing Flash.....................
    Programming 36000 Bytes...................................­....
    Checking...
    Done!
    >ERROR: Invalid baud rate specified
    

    I am curious as to what ERROR: Invalid baud rate specified
    refers too.

    I disconnect then close the Espruino WebIDE window. Next, I open the WebIDE, connect and type dump(). dump returns:

    var phValue = "";
    function getPhValue() {
     on = !on;
     digitalWrite(LED1, on);
     Serial4.print("r\r");
    }
    var interval = 1;
    var on = false;
    setInterval(getPhValue, 15360000);
    Serial4.onData(function (e) {
      phValue+=e.data;
      if (e.data == "\r") {
        print(phValue);
        phValue="";
      }
    });
    =undefined
    

    My JS code seems to have saved correctly, but the code will not execute upon a save() or when I unplug and plug the Espruino board into the same USB port to obtain power. I also tried pressing the reset button, but that does not seem to reset the board. The only change I see when pressing the RESET button is, the WebIDE locks up causing me to have to unplug the Espruino board from the USB port, then plug the board into a different USB port in-order for the WebIDE to recognize the Espruino board again.

    Pressing the Send to Espruino button works as expected; however, as I stated above, submitting save() does not work as expected. What should I do to get the saved code to work?

About

Avatar for d0773d @d0773d started