Add watchdog timer function for a more robust firmware #134

Open
opened 2026-10-05 05:41:02 +02:00 by adam · 1 comment
Owner

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.

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. <!-- github-sync-id:2533400872 -->
Author
Owner

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

this is something I still never used, so I will try to learn a few examples before even trying to add this here <!-- github-comment-id:2369260813 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/LoRa_APRS_iGate#134