Watch dog task

API Reference

Functions

esp_err_t esp_task_wdt_init(void)

Initialize the Task Watchdog Timer (TWDT)

Return
  • ESP_OK: Initialization was successful
  • ESP_ERR_NO_MEM: Initialization failed due to lack of memory
Note
esp_task_wdt_init() must only be called after the scheduler started

void esp_task_wdt_reset(void)

Reset(Feed) the Task Watchdog Timer (TWDT) on behalf of the currently running task.