"ble_uart" : Unhandled promise rejection #1575
Replies: 6 comments
-
Posted at 2021-09-08 by Robin Tue 2021.09.07 It appears that the error may be caused and thrown from within the disconnect() function at L15
That said, I thought it would be a breeze to add detection code, but code location and the syntax is a bit different with nested functions. Maybe this might provide some clues:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-09-14 by @gfwilliams
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-09-14 by @MaBecker Ok, so like this?
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-09-15 by @gfwilliams Yes, that should help |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-09-22 by @MaBecker There is the need for a additional try catch to handle
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-09-25 by Robin 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 @MaBecker as this will come in handy down the road. . . . |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2021-09-07 by @MaBecker
used code:
output
Is there a way to avoid that?
Beta Was this translation helpful? Give feedback.
All reactions