BLE error "BLE task REQ_DEV is already in progress" #7682
-
I have a Bangle.js 2 and a Puck.js, and I have previously connected from the bangle to the puck, either connecting to the bangle via the IDE, or directly, from an app that I wrote. Now, I do the same thing, and I get
I don't know what changed, for this error to pop up. I'm running the exact same code that worked well a few weeks ago. Some more details: one way I get the error is uploading the following code to the bangle via the ide
which gives the error
Another way to get the same error is running the app calibrtr, available at a fork https://github.com/baldursigurds/BangleApps https://baldursigurds.github.io/BangleApps/?q=calibrtr Running calibrtr with the IDE open gives
I have run this app several times (a few weeks / months ago) and obtained data via bluetooth. Now, the same code hangs on this error. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Is it possible you may have uploaded The error You could paste this into the IDE:
it'll take a while but will scan all files on the watch to see if anything you're not expecting includes a requestDevice call |
Beta Was this translation helpful? Give feedback.
-
Thanks a bunch! I tried running the code and found hits on bthrm, as well as two apps I've written. I tried uninstalling the three apps and now it works. I reinstalled the apps, and it still works. Unfortunately I do not know which part of this procedure fixed the problem, i.e. where the problem lay. I'll try to be more methodical if this happens again, to try to actually find the problem. |
Beta Was this translation helpful? Give feedback.
Is it possible you may have uploaded
To Flash
on your Bangle with the IDE? In that case, some code could be running as well as your app, so effectivelyNRF.requestDevice(
is being called two times, right next to each other?The error
BLE task REQ_DEV is already in progress
basically only happens becauseNRF.requestDevice
has previously been called and is still searching for whatever it was asked to search for last time.You could paste this into the IDE:
it'll take a while but will scan all fi…