esp-idf icon indicating copy to clipboard operation
esp-idf copied to clipboard

esp_wifi_get_config retruns station ssid and password as empty (IDFGH-13173)

Open imdahsiaria90 opened this issue 1 year ago • 2 comments

Answers checklist.

  • [X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • [X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • [X] I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

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 ?

imdahsiaria90 avatar Jun 30 '24 13:06 imdahsiaria90

@imdahsiaria90 sorry for late reply

can you provide more info,such as new idf version 、reproduce flow and more details esp_wifi_get_config() will be test in idf release test,so it still work well

hansw123 avatar Sep 09 '24 11:09 hansw123

@imdahsiaria90 did you mean get config after OTA?

hansw123 avatar Sep 12 '24 06:09 hansw123

Thanks for reporting, will close due to short of feedback, feel free to reopen with more updates. Thanks for using our Espressif product!

Sherry616 avatar Oct 18 '24 08:10 Sherry616