richonguzman / LoRa_APRS_iGate

LoRa APRS iGATE for ESP32 Based Board with Rx + Tx capabilities
MIT License
239 stars 72 forks source link

Add watchdog timer function for a more robust firmware #178

Open IU5HKU opened 1 month ago

IU5HKU commented 1 month ago

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 commented 1 month ago

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