Page 1 of 1

ESP32 Smartconfig (IDF) - reconfiguring SSID and Password

Posted: Fri Nov 08, 2019 10:50 am
by Yuvaraj1867
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.

Re: ESP32 Smartconfig (IDF) - reconfiguring SSID and Password

Posted: Fri Nov 08, 2019 8:56 pm
by chegewara
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.

Re: ESP32 Smartconfig (IDF) - reconfiguring SSID and Password

Posted: Mon Nov 11, 2019 6:07 am
by Yuvaraj1867
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.