And don't forcibly disconnect, then the write while effective on the BLE device accessed, will take ages to complete ( like 15 seconds ) and it won't really complete it will go in catch() for a Disconnected error.
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.
Dear Puck.js developers,
Thanks for the great work, I'm impressed by the Puck.js quality.
If I use the firmware v2.03 (I reverted to v2.02 for now) when I perform a simple connection of this kind :
I get during gatt.connect an error message on the console:
I don't do any clearTimeout myself, so it must be some of NRF code that is doing this.
Another error that I could workaround is that if I return the promise of the line
And don't forcibly disconnect, then the write while effective on the BLE device accessed, will take ages to complete ( like 15 seconds ) and it won't really complete it will go in catch() for a Disconnected error.
Cheers,