The first time the button is pressed after connecting, the returned data (a string: "qigong") is prefixed by ">" when passed to onLine(). Not sure why that is – any ideas?
It's because Espruino writes some text to the console (the command-line interface part) to show that it's moved on to Bluetooth. You could add LoopbackA.setConsole(1) to force the console not to move to Bluetooth - but if you did that then you wouldn't be able to program it until you reset it :)
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.
Thanks! Actually I missed this the first time:
It's because Espruino writes some text to the console (the command-line interface part) to show that it's moved on to Bluetooth. You could add
LoopbackA.setConsole(1)
to force the console not to move to Bluetooth - but if you did that then you wouldn't be able to program it until you reset it :)