feat(nimble): BLE_GAP_EVENT_LINK_ESTAB event to ensure link established

This commit is contained in:
Rahul Tank
2024-07-22 10:06:18 +05:30
parent 4e6e08d483
commit 071fed2d6f
28 changed files with 35 additions and 34 deletions

View File

@@ -239,7 +239,7 @@ gatts_gap_event(struct ble_gap_event *event, void *arg)
int rc;
switch (event->type) {
case BLE_GAP_EVENT_CONNECT:
case BLE_GAP_EVENT_LINK_ESTAB:
/* A new connection was established or a connection attempt failed */
ESP_LOGI(tag, "connection %s; status = %d ",
event->connect.status == 0 ? "established" : "failed",