You'll need to connect to the Bangle after you run the app. The NRF.disconnect() in the try...catch will force the Bangle to disconnect if you'd forgotten to disconnect before (if the services hadn't updated) and then you'll have to reconnect
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.
Hi, maybe just try:
No need for the
onInit
stuff.You'll need to connect to the Bangle after you run the app. The
NRF.disconnect()
in the try...catch will force the Bangle to disconnect if you'd forgotten to disconnect before (if the services hadn't updated) and then you'll have to reconnect