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 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.
Well, it:
-> Bluetooth
to the old device>
)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 thetxBuffer
will just get full and things will stall.Does just doing
Bluetooth.write("sometext")
cause problems, or does that work?