fix(wifi_prov_mgr): Fixed wifi_prov_mgr_deinit api return type

1. Updated the return type for wifi_prov_mgr_deinit api from void
to esp_err_t.
2. Due to void type unable to trace the api failure.
This commit is contained in:
hrushikesh.bhosale
2025-05-16 23:15:45 +05:30
parent 78faa2535c
commit ccbb885c81
10 changed files with 53 additions and 16 deletions
@@ -76,10 +76,14 @@ The configuration structure :cpp:type:`wifi_prov_mgr_config_t` has a few fields
case WIFI_PROV_CRED_SUCCESS:
ESP_LOGI(TAG, "Provisioning successful");
break;
case WIFI_PROV_END:
case WIFI_PROV_END: {
/* De-initialize manager once provisioning is finished */
wifi_prov_mgr_deinit();
esp_err_t err = wifi_prov_mgr_deinit();
if (err != ESP_OK) {
ESP_LOGE(TAG, "Failed to de-initialize provisioning manager: %s", esp_err_to_name(err));
}
break;
}
default:
break;
}