It's all here: https://github.com/espruino/Espruino/blob/master/src/jsinteractive.c#L168
I can't remember anything else offhand, but you'd have to look at the source of jsiSetConsole.
I guess it could be the Bluetooth serial write IRQ that's crashing? You need to have a way of taking data out of the txBuffer and transmitting it via Bluetooth from an IRQ - if you don't have that then the txBuffer will just get full and things will stall.
Does just doing Bluetooth.write("sometext") cause problems, or does that work?
© Espruino, powered by microcosm.
Report a problem