console.log blocks action when disconnected from WebIDE (or a terminal program) #1148
Unanswered
espruino-discuss
asked this question in
JavaScript
Replies: 1 comment
-
Posted at 2018-02-21 by @gfwilliams 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 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-02-21 by ClearMemory041063
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.
Beta Was this translation helpful? Give feedback.
All reactions