You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Well, the 'console' - the bit on the left side of the Web IDE - can be put in any serial device on Espruino. When you start Espruino when it's plugged in to USB, it's on USB - but when you start Espruino without USB it's on Serial1 - so you can use the Web IDE through Bluetooth.

    But if the console is on a Serial Port, you can't read the data going into it. So what you want to do is to force the console to go onto USB (even though it's not connected) - that's what USB.setConsole() does.

    Having said that, if you start Espruino with USB plugged in, and then unplug USB, it will still swap back I'm afraid. It's easy enough to get around by just resetting it though.

About

Avatar for Gordon @Gordon started