feat(nimble): BLE_GAP_EVENT_LINK_ESTAB event to ensure link established

This commit is contained in:
Rahul Tank
2024-08-20 14:57:14 +05:30
parent 79ceb9b9dc
commit 793f0b3b65
27 changed files with 34 additions and 34 deletions
@@ -230,7 +230,7 @@ ble_spp_client_gap_event(struct ble_gap_event *event, void *arg)
ble_spp_client_connect_if_interesting(&event->disc);
return 0;
case BLE_GAP_EVENT_CONNECT:
case BLE_GAP_EVENT_LINK_ESTAB:
/* A new connection was established or a connection attempt failed. */
if (event->connect.status == 0) {
/* Connection successfully established. */