esp_task_wdt_add() function
Subscribe a task to the Task Watchdog Timer (TWDT) This function subscribes a task to the TWDT. Each subscribed task must periodically call esp_task_wdt_reset() to prevent the TWDT from elapsing its timeout period. Failure to do so will result in a TWDT timeout.
Arguments
task_handle
Handle of the task. Input NULL to subscribe the current running task to the TWDT
Return value
- ESP_OK: Successfully subscribed the task to the TWDT - Other: Failed to subscribe task
esp_task_wdt_add() is called by 1 function and calls 4 functions:
![]()
esp_task_wdt_add()
esp_task_wdt_add() reads 7 variables:
![]()
esp_task_wdt_add()