Resetting Enduser_Setup at run time
Posted:
Sun Jul 24, 2016 10:51 pm
by ChrisCo
I've added the Enduser_Setup module to my firmware build, and got it going just fine. However, I don't know how to reset to the Setup mode after I've entered my WiFi networks credentials from my mobile phone. How do I make the ESP forget and ask again? It seems to store wifi credentials even after powering down and booting back up (which is great!) but what if I want to switch the device to another network?
Re: Resetting Enduser_Setup at run time
Posted:
Tue Jul 26, 2016 1:12 am
by ChrisCo
I have found that by setting wifi.sta.config to some invalid value and then performing a wifi.disconnect() and then trying enduser_setup.start again it seems to work at least part of the time. Going to experiment with this a little more and will post again.
Re: Resetting Enduser_Setup at run time
Posted:
Tue Jul 26, 2016 9:49 am
by marcelstoer
ChrisCo wrote:what if I want to switch the device to another network?
enduser_setup.manual(true)?