I'd replace setInterval by scheduled setTimeout, it is fixed to 100ms here https://github.com/espruino/EspruinoDocs/blob/master/tutorials/Web%20Bluetooth%20Dashboard.md?plain=1#L214 so if sending (the Bluetooth.println(..)) takes longer than 100ms it may overflow and reboot(?). it is safer to schedule it again via setTimeout after println returns.
Bluetooth.println(..)
@fanoush 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.
I'd replace setInterval by scheduled setTimeout, it is fixed to 100ms here
https://github.com/espruino/EspruinoDocs/blob/master/tutorials/Web%20Bluetooth%20Dashboard.md?plain=1#L214
so if sending (the
Bluetooth.println(..)
) takes longer than 100ms it may overflow and reboot(?). it is safer to schedule it again via setTimeout after println returns.