#include "esp_task_wdt.h"


//###################################################
//##### ADD THIS TO THE TASKS STARTUP SOMEWHERE #####
//###################################################
	//----- SUBSCRIBE THIS TASK TO TWDT -----
	ESP_ERROR_CHECK(esp_task_wdt_add(NULL));
	ESP_ERROR_CHECK(esp_task_wdt_status(NULL));		//Check it is subscribed


//#########################################################
//##### USE THIS IN THE TASKS LOOPING STATE SOMEWHERE #####
//#########################################################
	//----- RESET THE WATCHDOG FOR THIS TASK -----
	esp_task_wdt_reset();