• Using the console.log command causes code execution to stop when the Web IDE is not connected.
    As written in the command note, it seems to occur anyway.

    Note: If you're connected to a computer (not a wall adaptor) via USB
    but you are not running a terminal app then when you print data
    Espruino may pause execution and wait until the computer requests the
    data it is trying to print.

  • That applies to devices with hardware USB, which RAK8211 doesn't have.

    But could you try adding the code Bluetooth.setConsole(1) - if you're using Serial1 for GSM/GPS (which seems likely) then Espruino might attempt to use that for the REPL when you're disconnected, which would break whatever you were communicating with

  • Thanks, I then found the same solution and it seems to work.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview

RAK8211, code stop when not connected to Web IDE in any way

Posted by Avatar for peruperu @peruperu