You are reading a single comment by @MaBe and its replies.
Click here to read the full conversation.
-
Sat 2021.09.25
Without writing any code or testing on my part;
I originally thought the try/catch would have to wrap/start at L14 as the user forced disconnect is within the setInterval(). So is that the promise reponse isn't really attached to any code as it responds, that the catch wrapper had to be around the entire code block as you have shown perhaps?
In any event, thank you for the snippet @MaBe as this will come in handy down the road. . . .
There is the need for a additional try catch to handle
Uncaught Error: BLE task DISCONNECT is already in progress