Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add watchdog timer function for a more robust firmware #178

Open
IU5HKU opened this issue Sep 18, 2024 · 1 comment
Open

Add watchdog timer function for a more robust firmware #178

IU5HKU opened this issue Sep 18, 2024 · 1 comment

Comments

@IU5HKU
Copy link

IU5HKU commented Sep 18, 2024

Hi Ricardo, this isn't an issue, again, but another proposal. Why don't add the WDT functions? They are for free in ESP32 sdk, and ESP32 has a real hardware wdt, not a software one as ESP8266. This can prevent accidental infinite loops, who knows, and at the cost of two simple function calls, one to setup the time for wdt, the other one to feed the wdt itself...
Here the sdk reference:

https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/system/wdts.html

there are a lot of examples online, but it's quite straightforward to use, no need to see examples :-)
Thank you for your time.

@richonguzman
Copy link
Owner

this is something I still never used, so I will try to learn a few examples before even trying to add this here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants