Page 1 of 1

Esp_wifi_get_config returns empty station ssid and password

Posted: Sun Jun 30, 2024 1:25 pm
by imdahisaria
Hello, I have an old project that was complied using ESPIDF - d60ba848-dirty
The project stored Station wifi credentials using esp_wifi_set_config api and later recovered it using esp_wifi_get_config.

I am now building a new project using the espidf v5 where I plan to do a OTA update and recover the wifi credentails.
when I call esp_get_wifi_config, the ssid and password are empty


Question:
1 .Is this command no longer available ?
2. where is the location of function esp_wifi_get_config located in esp-idf ?
3. Is there any other way i can recover the ssid and password contents ?