-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf toup][Zephyr] Retry starting BLE advertising after releasing con…
…nection. In Zephyr 4.0, the BT_LE_ADV_OPT_CONNECTABLE and BT_LE_ADV_OPT_CONNECTABLE advertising options have been deprecated and we need to use BT_LE_ADV_OPT_CONN instead. Due to the fact that the automatic advertiser resumption is deprecated, we must ensure that the BLE advertising arbiter restarts advertising in a different way if the service could not be started, for example, due to an existing BLE connection, or connection has been closed. We can use the recycled callback of the BT_CONN_CB to check if there is pending request in the list and if so, try to restart advertising. Signed-off-by: Arkadiusz Balys <[email protected]>
- Loading branch information
1 parent
c22e808
commit 93c7b09
Showing
2 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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