Watchdog timer WDT - prevent esp32 from stucking
i have esp32 and using arduino ide (2. 0. 18 board version) im trying to add a code that prevent esp from blocking. so if it stuck for some reasons to restart it. i found following code but is not working #include "esp_task_wdt. h" #include <WiFi. h> #include <HTTPClient. h> Define timeout in seconds (3minutes = 180seconds) #define WDT_TIMEOUT 180 void setup() { esp_task_wdt_init(WDT_TIMEOUT . . .
more
|