-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Add method for cancelling peripheral connections #6584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jonathanhogg, this looks useful. I will test this on STM32 btstack+nimble and update.
Maybe just one thought... instead of adding a new method, would |
Hey @jimmo, good call! Yes, using Interestingly, this doesn't fix my problem anyway. It turns out that the stuck connections I am suffering from are actually a result of missing events from the BLE IRQ callback. I'm about to raise an issue to capture thoughts. |
b12a513
to
ac9fb84
Compare
ac9fb84
to
419ed8d
Compare
Codecov Report
@@ Coverage Diff @@
## master #6584 +/- ##
==========================================
- Coverage 98.28% 98.27% -0.01%
==========================================
Files 154 154
Lines 19988 19988
==========================================
- Hits 19645 19644 -1
- Misses 343 344 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the error message this looks good to me. Thanks @jonathanhogg !
419ed8d
to
076293f
Compare
076293f
to
3de2757
Compare
Allow cancellation of in-progress peripheral connections.
Document new `gap_connect(None)` mechanism for cancelling an in-progress connection attempt.
3de2757
to
dc4543d
Compare
Thanks for this, now merged in 851ecb2 |
Add WebSocket at /cp/serial/
Add a new
gap_connect_cancel()
method to allow an in-progressgap_connect()
to be cancelled. This allows for timing-out a stuck connection attempt – typical of unreliable links or devices that suddenly disappear.Tested on the ESP32 nimble port, but untested on btstack.