Hi,
I am trying to send wifi credentials from ESP Touch app. It is working fine. I did some changes in source code and i am able to store the wifi credentials in NVS. Whenever power cycle is happening ESP is able to fetch ssid and password from nvs and it is connecting to AP.
But in my case whenever i needs to change my SSID and Password i will give new wifi credentials through ESP Touch. Esp has to disconnect from previous ssid and has to connect with new one. I dont know how to get second time wifi credentials through ESP Touch App.
The problem is if wifi credentials received first time smartconfig task is goes switched off.
Is someone has experience on this? If Yes, kindly help me.
Thanks in Advance.
ESP32 Smartconfig (IDF) - reconfiguring SSID and Password
-
- Posts: 63
- Joined: Wed Mar 06, 2019 4:39 am
- Contact:
Re: ESP32 Smartconfig (IDF) - reconfiguring SSID and Password
Thats the case, to run smartconfig wifi cant be connected to any AP, co when you connect to AP smartconfig is off, but you can start smartconfig on demand which will cause to disconnect from AP, just dont use auto re-connect.
-
- Posts: 63
- Joined: Wed Mar 06, 2019 4:39 am
- Contact:
Re: ESP32 Smartconfig (IDF) - reconfiguring SSID and Password
Hi, Thanks.
I Added a button. When i pressed it has to disconnect from Connected AP and start Smartconfig. It is Working. Now im able to reconfigure.
I Added a button. When i pressed it has to disconnect from Connected AP and start Smartconfig. It is Working. Now im able to reconfigure.
-
- Posts: 5
- Joined: Tue Oct 15, 2019 11:15 am
Re: ESP32 Smartconfig (IDF) - reconfiguring SSID and Password
Hello,
Can you share your source code - especially the reconfigure module that saves the SSID and PASS in NVS.
Thanks in advance,
Moran.
Can you share your source code - especially the reconfigure module that saves the SSID and PASS in NVS.
Thanks in advance,
Moran.
Re: ESP32 Smartconfig (IDF) - reconfiguring SSID and Password
Hi , it can not save the new SSID and Password in flash when reset ,please give same help, Thanks a lot!
-
- Posts: 28
- Joined: Tue Sep 10, 2019 7:22 am
Re: ESP32 Smartconfig (IDF) - reconfiguring SSID and Password
I am looking at implementing smartconfig too, improving on my current setup where I have my credentials hard coded in the firmware.
Do I have to implement my own NVS setter and getter for credentials when using smartconfig or is there something in the backend of the esp_wifi which can connect to previously used credentials (following a POR)?
Regards
Do I have to implement my own NVS setter and getter for credentials when using smartconfig or is there something in the backend of the esp_wifi which can connect to previously used credentials (following a POR)?
Regards
-
- Posts: 3
- Joined: Tue Jun 22, 2021 1:00 pm
Re: ESP32 Smartconfig (IDF) - reconfiguring SSID and Password
Could you share the sample code for this.?Yuvaraj1867 wrote: ↑Fri Nov 08, 2019 10:50 amHi,
I am trying to send wifi credentials from ESP Touch app. It is working fine. I did some changes in source code and i am able to store the wifi credentials in NVS. Whenever power cycle is happening ESP is able to fetch ssid and password from nvs and it is connecting to AP.
But in my case whenever i needs to change my SSID and Password i will give new wifi credentials through ESP Touch. Esp has to disconnect from previous ssid and has to connect with new one. I dont know how to get second time wifi credentials through ESP Touch App.
The problem is if wifi credentials received first time smartconfig task is goes switched off.
Is someone has experience on this? If Yes, kindly help me.
Thanks in Advance.
Who is online
Users browsing this forum: Bing [Bot] and 61 guests