You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[nrf toup][Zephyr] Retry starting BLE advertising after releasing connection.
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 <arkadiusz.balys@nordicsemi.no>
0 commit comments