-
• #2
Wow, I'm amazed you only just hit this :) It's been in troubleshooting for a while (http://www.espruino.com/Troubleshooting) but might be a bit hard to find.
It's because Espruino doesn't want to lose data when it's connected to USB, and it has no way of knowing if data is not being accepted because the computer on the end is busy, or because no application is running on it
If you use console.log in a program but disconnect the program execution is blocked when the console buffer is full.
For example:
and the output:
If you are using console.log to show the connection status etc. of a WiFi connection, disconnecting the WebIde will block the server.
Not complaining about this, just posting to let others know about this gotcha.