Is there a way to redirect the console outputs to another channel that I can observe, whilst keeping the serial1 channel just for the comms to the module?
Yes, just use LoopbackA.setConsole() and then add whatever listener you want with LoopbackB.on('data', ...) - or just replace LoopbackA with whatever output device you want the JS console to appear on.
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.
Yes, just use
LoopbackA.setConsole()
and then add whatever listener you want withLoopbackB.on('data', ...)
- or just replaceLoopbackA
with whatever output device you want the JS console to appear on.