Comments (4)
It's totally possible if the library is rewritten, but I won't do it because the library will be over-complex for normal users, who require only DoubleReset
.
I'll write two new libraries, named MultiResetDetector
(MRD, for ESP32/ESP8266) and MultiResetDetector_Generic
(for remaining boards, such as SAMD, nRD52, AVR, STM32, SMA DUE, etc.) with these following capabilities, within several days.
- Configurable MRD_TIMEOUT, from 0 to almost infinite (unsigned long) seconds
- Configurable MRD_TIMES, from 0 to almost 64K (uint16_t) times
- There will be some accurate way to verify, using checksum or numeric check, to be sure it's perfect and expected
- The current MRD times and MRD_TIMEOUT will be displayed at every boot time to inform users.
Can you provide more info about your use-case, so that I can tailor the examples to match your expectation ?
Thanks for your interest in this ESP_DoubleResetDetector and your good idea. I'll certainly name you in the contributor's list of the new libraries.
from esp_doubleresetdetector.
I think that having the option to configure more than 2 resets is good, because I want to use it to reset the WiFi credentials and
that will be activated very easy without the user interaction wilth only 2 resets detection. For example, when occur mains spikes.
Anyway your library is very useful.
Thank you for your fast reply.
from esp_doubleresetdetector.
New library ESP_MultiResetDetector has been created and published. Please test and enjoy.
Regards,
Releases v1.1.1
- Initial coding to support Multiple Reset Detection.
- Sync with ESP_DoubleResetDetector v1.1.1
Your idea leading to the new library has been noted in Contributions and Thanks
from esp_doubleresetdetector.
New library ESP_MultiResetDetector has been created and published. Please test and enjoy.
Regards,
Releases v1.1.1
- Initial coding to support Multiple Reset Detection.
- Sync with ESP_DoubleResetDetector v1.1.1
Your idea leading to the new library has been noted in Contributions and Thanks
Ow !! That was fast !
Thank you very much for mentioning my name on the contributor's list of the new libraries.
from esp_doubleresetdetector.
Related Issues (12)
- typo: <DoubleResetDetector.h> => <ESP_DoubleResetDetector.h> HOT 1
- Double reset detected when powering up HOT 1
- libraries/ESP_DoubleResetDetector/src/ESP_DoubleResetDetector.h: No such file or directory with ESP8266 HOT 3
- 'LittleFS' was not declared in this scope HOT 1
- Error compilation for ESP32 HOT 5
- Minimal example Not working on ESP32 HOT 3
- Feature Request: Ability to clear timeout with a call, instead of time HOT 1
- RTC address with OTA HOT 3
- library.json has a missing comma HOT 1
- Strange Incompatibility when DRD is in a xTask HOT 5
- Sign compare warning HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp_doubleresetdetector.