Hi!
I am mastering ESP-WROOM-32 at first everything was fine, but after some manipulations
(I will not determine exactly which ones now- I experimented with NVS, wifi_prov_mgr)
, my ssid and password stopped changing via sdkconfig.
I download a simple SoftAP- if I first clear the flash (esptool --chip esp 32 --port COM3 --baud 921600 erase_flash),
then I connect to ESP perfectly. But it is worth changing the ssid in the sdk config further, the connection does not occur until you clear the flash.
The same thing happens when changing the password.(however, when I change my password, I can connect to the access point using the old password).
The terminal displays the new ssid and password
(1125) wifi softAP: wifi_init_softap finished. SSID:32154 password:12345678 channel:1
It seems that after a successful connection, the ssid and password are written to NVS, but when changing the ssid and password, he does not bet them from sdkconfig,
but the old ones from NVS. Is there a flag somewhere?
Can you tell me where to look?
Many thanks in advance.
SoftAP does not change the ssid and password via sdkconfig.
SoftAP does not change the ssid and password via sdkconfig.
Last edited by Angorka on Thu Sep 19, 2024 6:14 am, edited 1 time in total.
-
- Posts: 111
- Joined: Thu Oct 03, 2019 10:52 pm
- Contact:
Re: SoftAP does not change the ssid and password via sdkconfig.
You can clear all NVS with the following command.
Code: Select all
idf.py erase-flash -p your_device
(ex)
idf.py erase-flash -p /dev/ttyUSB0
idf.py erase-flash -p /dev/ttyACM0
Re: SoftAP does not change the ssid and password via sdkconfig.
Good afternoon!
I'm mastering ESP-WROOM-32. at first everything was fine, but after some manipulations (I can't determine exactly which ones now - I experimented with NVS, wifi_prov_mgr)
, my ssid and password stopped changing via sdkconfig.
I download a simple SoftAP- if I first clear the flash (esptool --chip esp 32 --port COM3 --baud 921600 erase_flash),
then I connect to ESP perfectly. But it is worth changing the ssid in sdkconfig further, the connection does not occur until you clear the flash.
The same thing happens when changing the password.(however, when I change my password, I can connect to the access point using the old password).
The terminal displays the new ssid and password
(1125) wifi softAP: wifi_init_softap finished. SSID:32154 password:12345678 channel:1
It seems that after a successful connection, the ssid and password are written to NVS, but when changing the ssid and password, he does not bet them from sdkconfig,
but the old ones from NVS. Is there a flag somewhere?
Can you tell me where to look?
I'm mastering ESP-WROOM-32. at first everything was fine, but after some manipulations (I can't determine exactly which ones now - I experimented with NVS, wifi_prov_mgr)
, my ssid and password stopped changing via sdkconfig.
I download a simple SoftAP- if I first clear the flash (esptool --chip esp 32 --port COM3 --baud 921600 erase_flash),
then I connect to ESP perfectly. But it is worth changing the ssid in sdkconfig further, the connection does not occur until you clear the flash.
The same thing happens when changing the password.(however, when I change my password, I can connect to the access point using the old password).
The terminal displays the new ssid and password
(1125) wifi softAP: wifi_init_softap finished. SSID:32154 password:12345678 channel:1
It seems that after a successful connection, the ssid and password are written to NVS, but when changing the ssid and password, he does not bet them from sdkconfig,
but the old ones from NVS. Is there a flag somewhere?
Can you tell me where to look?
Re: SoftAP does not change the ssid and password via sdkconfig.
Thanks for the tip! Erasing NVS with idf.py erase-flash seems like a good solution. Do you know if this will affect any other stored settings, or just the Wi-Fi credentials?
Re: SoftAP does not change the ssid and password via sdkconfig.
Thanks for the advice! But I thought that cleaning NVS with idf.ру erase-flash is identical to cleaning with estool ( idf.ру calls esptool anyway). I have already carried out such cleaning (yes, after cleaning the nvs, the connection is established with the specified sidd and password, however, it is worth changing the sidd in sdconfig and there is no connection again). So far, I've solved this by disabling config_esp32_wifi_nvs_enabled.
-
- Posts: 111
- Joined: Thu Oct 03, 2019 10:52 pm
- Contact:
Re: SoftAP does not change the ssid and password via sdkconfig.
All setting will be deleted.
Your ESP32 will be in the factory condition.
Your ESP32 will be in the factory condition.
Who is online
Users browsing this forum: No registered users and 172 guests