Skip to content

Send GATT Service Changed once per boot on nRF52 BLE - #3924

Open
BadPirate wants to merge 1 commit into
meshcore-dev:devfrom
kaperkunde:pr/nrf52-ble-service-changed
Open

BadPirate wants to merge 1 commit into
meshcore-dev:devfrom
kaperkunde:pr/nrf52-ble-service-changed

Conversation

@BadPirate

Copy link
Copy Markdown

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. Built RAK_4631_companion_radio_ble, Xiao_nrf52_companion_radio_ble and Heltec_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

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
BadPirate marked this pull request as ready for review November 23, 2026 11:40

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant