ESP_MultiResetDetector Library
How To Install Using Arduino Library Manager
Why do we need this ESP_MultiResetDetector Library
ESP_MultiResetDetector is a library for the ESP8266 and ESP32 boards to detects a configurable multi reset, within configurable timeout (default 10s) seconds, so that an alternative start-up mode can be used. Example use cases are to allow re-configuration of a device's WiFi / MQTT / Blynk credentials or to count the number of resets within a pre-determined timed.
This library is based on, modified and improved from ESP_DoubleResetDetector to add support to MultiResetDetection for ESP8266 and ESP32 using EEPROM, SPIFFS and LittleFS.
This library can be used to detect a multi reset within a predetermined time to force the program to enter a special operation such as Config Portal, Clear Default Data, etc., using :
- EEPROM, SPIFFS or LittleFS for ESP8266 and ESP32 boards.
- RTC memory for ESP8266 boards (unadvised).
Releases v1.1.1
- Initial coding to support Multiple Reset Detection.
- Sync with ESP_DoubleResetDetector v1.1.1
Currently Supported Boards
- ESP32 boards using EEPROM, SPIFFS or LittleFS.
- ESP8266 boards RTC memory, EEPROM, SPIFFS or LittleFS
Examples:
Examples from other libraries
Check the long list of Examples from other libraries