pub unsafe extern "C" fn esp_task_wdt_add(
    task_handle: TaskHandle_t
) -> esp_err_t
Expand description

@brief 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.

@param task_handle Handle of the task. Input NULL to subscribe the current running task to the TWDT @return

  • ESP_OK: Successfully subscribed the task to the TWDT
  • Other: Failed to subscribe task