esp_task_wdt_add_user() function
Subscribe a user to the Task Watchdog Timer (TWDT) This function subscribes a user to the TWDT. A user of the TWDT is usually a function that needs to run periodically. Each subscribed user must periodically call esp_task_wdt_reset_user() to prevent the TWDT from elapsing its timeout period. Failure to do so will result in a TWDT timeout.
Arguments
user_name
String to identify the user
user_handle_ret
Handle of the user
Return value
- ESP_OK: Successfully subscribed the user to the TWDT - Other: Failed to subscribe user
esp_task_wdt_add_user() calls 3 functions:
![]()
esp_task_wdt_add_user()
esp_task_wdt_add_user() reads 7 variables:
![]()
esp_task_wdt_add_user()