@AnotherStranger@Gordon Sorry to bother you again but the issue pointed out by AnotherStranger is actually not allowing me to properly develop an app. The following code, even though makes the heart rate service available, throws this error in the IDE:
This code still resulted in an error: in function called from system
Uncaught Error: Can't update services until BLE restart
at line 1 col 79
...idence,hrm.bpm],notify:true}}});
Is there an established way to do this that I've missed perhaps? Thank you in advance!
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.
@AnotherStranger @Gordon Sorry to bother you again but the issue pointed out by AnotherStranger is actually not allowing me to properly develop an app. The following code, even though makes the heart rate service available, throws this error in the IDE:
Trying to resolve the issue with the need for restart does not seem to resolve the problem. I have tried this:
I have also tried this (introducing a timeout):
This code still resulted in an error:
in function called from system
Uncaught Error: Can't update services until BLE restart
at line 1 col 79
...idence,hrm.bpm],notify:true}}});
Is there an established way to do this that I've missed perhaps? Thank you in advance!