What happens if you just try LoopbackA.setConsole();Serial1.setConsole() - so no Bluetooth involved at all. Does that work?
LoopbackA.setConsole();Serial1.setConsole()
And if you just do:
Bluetooth.print("foobar"); Bluetooth.on('data',x=>print(JSON.stringify(x)));
Do normal bluetooth comms all seem to work ok?
It might just be that DeviceInitialised isn't set for Serial1, so calling Serial1.setConsole at all causes it to get reinitialised, which breaks it?
Serial1.setConsole
@Gordon started
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.
What happens if you just try
LoopbackA.setConsole();Serial1.setConsole()
- so no Bluetooth involved at all. Does that work?And if you just do:
Do normal bluetooth comms all seem to work ok?
It might just be that DeviceInitialised isn't set for Serial1, so calling
Serial1.setConsole
at all causes it to get reinitialised, which breaks it?