• @Gordon

    Basically Espruino is using USB flow control and is trying not to lose
    any text that you output with console.log - it doesn't know if the PC
    isn't reading data because the IDE is busy, or because nothing is
    running, so when its output buffer gets full it just waits for it to
    start emptying before it continues.

    That makes total sense. Is it possible for the espruino to check if it is connected to a computer, if not, don't output text or just periodically clear the buffer?

    Is it possible you were saving after running onInit (so it was
    basically saving with an open socket connection)

    That sounds like what is going on. Does the current mqtt connection get terminated if the Pico looses power? Then once power is supplied again the mqtt connection should start back up as new? IF there is a fresh mqtt connection(without uploading/saving code again) I shouldn't be receiving the ping Uncaught Error as described earlier, but I still am.

About

Avatar for d0773d @d0773d started