How to know if console is connected - to use print()/console.log() not loocking up. #752
Unanswered
espruino-discuss2
asked this question in
Interfacing
Replies: 1 comment
-
Posted at 2015-05-26 by @gfwilliams This should do 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
-
Posted at 2015-05-26 by @allObjects
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.
Beta Was this translation helpful? Give feedback.
All reactions