fix(nimble): Address compilation issues in nimble examples

This commit is contained in:
Rahul Tank
2025-10-13 10:50:19 +05:30
parent d66ebb86d2
commit 07a9d40a75
34 changed files with 173 additions and 32 deletions
@@ -82,12 +82,14 @@ void app_main(void) {
return;
}
#if CONFIG_BT_NIMBLE_GAP_SERVICE
/* GAP service initialization */
rc = gap_init();
if (rc != 0) {
ESP_LOGE(TAG, "failed to initialize GAP service, error code: %d", rc);
return;
}
#endif
/* NimBLE host configuration initialization */
nimble_host_config_init();
@@ -251,6 +251,7 @@ int gap_init(void) {
/* Local variables */
int rc = 0;
/* Initialize GAP service */
ble_svc_gap_init();