Repository navigation
Conversation
Bonded centrals cache the GATT table, so after a firmware update that changes it they keep using stale handles. Indicate Service Changed for the whole user attribute range on the first secured connection after boot. Co-Authored-By: Claude Opus 5.5 <[email protected]>
BadPirate
marked this pull request as ready for review
November 23, 2026 11:40
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After a firmware update that changes the GATT table, bonded phones and Macs keep their cached handles and cannot talk to the node. This sends a Service Changed indication for the whole user attribute range from
SerialBLEInterface::onSecured, once per boot. If the peer has not enabled Service Changed indications yet the call fails and the next secured connection retries. It is unconditional because the indication is harmless to a peer that has nothing cached. Fixes #3923. BuiltRAK_4631_companion_radio_ble,Xiao_nrf52_companion_radio_bleandHeltec_t114_companion_radio_ble. The same change has been running in a fork on a SenseCAP Solar P1 (XIAO nRF52840 based) through several Bluetooth firmware updates from macOS; not tested with iOS or Android.🤖 Generated with Claude Code