khoih-prog / ESP_WiFiManager

This is an ESP32 / ESP8266 WiFi Connection Manager with fallback web configuration portal. Use this library for configuring ESP32 (including ESP32-S2 and ESP32-C3), ESP8266 modules' WiFi, etc. Credentials at runtime. You can also specify static DNS servers, personalized HostName, fixed or random AP WiFi channel. With examples supporting ArduinoJson
MIT License
371 stars 97 forks source link

Launch the "ConfigPortal" when pressing the reset button #86

Closed MattiaCC93 closed 2 years ago

MattiaCC93 commented 2 years ago

Hi, I am doing some experiments with my ESP32 and I would like to know if it is possible to launch the "ConfigPortal" (the procedure that allows the user to enter the wifi credentials) using the "reset" button already soldered on the hardware.

image

p.s. thanks to all the contributors to this project, it's great 🚀

Thanks in advance for feedback and opinions Thank you

khoih-prog commented 2 years ago

Hi @MattiaCC93

Thanks for your nice words. You're very welcome.

Use the ConfigOnDoubleReset example

This example will open a configuration portal when the reset button is pressed twice. This method works well on boards which have a single reset button. It avoids using a pin for launching the configuration portal.

Next time, please use Discussions to ask for advice, etc. unless there is a bug of or enhancement request for the library.

MattiaCC93 commented 2 years ago

thanks, I only found out now that there are "Discussions" on github 😄