-->
Page 1 of 1

How can change the ssid and pwd dynamically?

PostPosted: Wed Sep 21, 2016 9:06 am
by TarekJ
when I program the esp8266 I assign an ssid & pwd

How can change the ssid and pwd dynamically?

I mean enabling the user to change them on his own?

Re: How can change the ssid and pwd dynamically?

PostPosted: Fri Dec 09, 2016 2:10 am
by volthaus
The On Demand Config portal works great for this. You specify the trigger pin (#define TRIGGER_PIN 0) and when this pin is grounded on bootup it moves the ESP into Access Point mode and spins up a DNS and WebServer (default ip 192.168.4.1). Put that IP into the url of any web browser and you will get the config page. You select your AP from the list presented and add your password. After submitting the information the ESP will try to connect. If successful, it relinquishes control back to your app. I have found that ungrounding the trigger pin and rebooting is needed. From then on your sketch runs as normal and it automatically conects to your network.


https://github.com/tzapu/WiFiManager