-
Sun 2021.09.12
Hi @Jeff as I indicated 'One idea might be to have the Puck regularly signal' and you now have yet another.
I steered away from that solution as I wasn't able to find a suitable example/tutorial and there had been a recent post on how to wire the rejected 'Promise' into existing code.
http://forum.espruino.com/conversations/367683/
http://www.espruino.com/Reference#BluetoothRemoteGATTService
Anyone suggest/provide a simple example code block, other than the API reference?
Thanks for the information Robin. I will look into a try/catch block.
Rather than looking for an error is could I query the BLE and make use of the following information the puck sends?
Sorry if this is total newby question.
puck.js:406 Connected
puck.js:406 SEND ERROR: NotSupportedError: GATT operation failed for unknown reason.
puck.js:406 Disconnected (gattserverdisconnected)