Nimble: Added return value (success / failure ) to nimble_port_init

This commit is contained in:
Rahul Tank
2022-12-20 14:11:52 +05:30
parent 1195b6cb2b
commit 826495a145
23 changed files with 144 additions and 49 deletions
@@ -451,7 +451,11 @@ void app_main(void)
}
ESP_ERROR_CHECK(ret);
nimble_port_init();
ret = nimble_port_init();
if (ret != ESP_OK) {
ESP_LOGE(tag, "Failed to init nimble %d ", ret);
return;
}
ble_svc_gap_init();
ble_svc_gatt_init();