• 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.

  • This should do it...

    >process.env.CONSOLE
    ="USB"
    
  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

How to know if console is connected - to use print()/console.log() not loocking up.

Posted by Avatar for allObjects @allObjects

Actions