The use of the ESP8266 in the world of IoT

User avatar
By volthaus
#59268 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