Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Not an issue, but a question #9

Closed
kbssa opened this issue Dec 30, 2020 · 4 comments
Closed

Not an issue, but a question #9

kbssa opened this issue Dec 30, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@kbssa
Copy link

kbssa commented Dec 30, 2020

Is that possible to configure the library to detect more than two resets ?

Thanks for the library.

@khoih-prog
Copy link
Owner

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.

  1. Configurable MRD_TIMEOUT, from 0 to almost infinite (unsigned long) seconds
  2. Configurable MRD_TIMES, from 0 to almost 64K (uint16_t) times
  3. There will be some accurate way to verify, using checksum or numeric check, to be sure it's perfect and expected
  4. 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.

@khoih-prog khoih-prog added the enhancement New feature or request label Dec 30, 2020
@kbssa
Copy link
Author

kbssa commented Dec 30, 2020

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.

@khoih-prog
Copy link
Owner

New library ESP_MultiResetDetector has been created and published. Please test and enjoy.

Regards,


Releases v1.1.1

  1. Initial coding to support Multiple Reset Detection.
  2. Sync with ESP_DoubleResetDetector v1.1.1

Your idea leading to the new library has been noted in Contributions and Thanks

@kbssa
Copy link
Author

kbssa commented Jan 4, 2021

New library ESP_MultiResetDetector has been created and published. Please test and enjoy.

Regards,

Releases v1.1.1

  1. Initial coding to support Multiple Reset Detection.
  2. 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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants