I'm going nuts. Trying to discover devices, services, characteristics.
When everything exists - no problem.
But I'd like to handle that a service is not defined.
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'm going nuts. Trying to discover devices, services, characteristics.
When everything exists - no problem.
But I'd like to handle that a service is not defined.
This is my simplified code:
On execution neither
f=>{
nor.catch(e=>{
are called:Is this a bug or have I messed up my Promises?