Giter Site home page Giter Site logo

Comments (4)

khoih-prog avatar khoih-prog commented on August 11, 2024

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.

from esp_doubleresetdetector.

kbssa avatar kbssa commented on August 11, 2024

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.

khoih-prog avatar khoih-prog commented on August 11, 2024

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

from esp_doubleresetdetector.

kbssa avatar kbssa commented on August 11, 2024

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.

from esp_doubleresetdetector.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.