Post explains that when console is connected - via USB - or redirected and connected to some other serial, that Espruino looks like loocking up, because it waits to empty the print/log buffer.
How can we know - by application code - whether there is a connection or not.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Post explains that when console is connected - via USB - or redirected and connected to some other serial, that Espruino looks like loocking up, because it waits to empty the print/log buffer.
How can we know - by application code - whether there is a connection or not.