ESP_DoubleResetDetector library v1.0.1 has been updated and included into Arduino Library Manager and Platform.io
This library will help detect a
double reset within a configurable time, so that an
alternative start-up mode / function can be used. For example:
- To allow re-configuration of a device’s
WiFi / Blynk credentials.
- To do some
out-of-schedule work, such as
clearing data, loading defaults, etc.
The 4-byte flag data is stored in
- RTC Memory, EEPROM or SPIFFS for ESP8266
- EEPROM and SPIFFS for ESP32.
See example how to use this library in
[ConfigOnDoubleReset example] (https://github.com/khoih-prog/ESP_WiFiManager/blob/master/examples/ConfigOnDoubleReset/ConfigOnDoubleReset.ino)
This example demonstrates the open of
ConfigPortal whenever the reset button is pressed twice within 10 secs, so that you can change WiFi credentials, any stored data or do some