What should I write in esp_task_wdt_isr_user_handler()?

G_y0un
Posts: 1
Joined: Tue Jul 28, 2020 2:30 am

What should I write in esp_task_wdt_isr_user_handler()?

Postby G_y0un » Tue Jul 28, 2020 2:39 am

Hi, I have some questions about this function, I tried to do something in it but it seems not work well
This is what I write in esp_task_wdt_isr_user_handler():

Code: Select all

	esp_task_wdt_delete(tcp_client_xHandle);
 	vTaskDelete(tcp_client_xHandle);
 	xTaskCreate(tcp_client_task,"tcp_client_task",4096,NULL,4,&tcp_client_xHandle);
 	esp_task_wdt_add(tcp_client_xHandle);
Would someone tell me what should I write in this function if I want to restart one task? Thank u very much!

ESP_Sprite
Posts: 3937
Joined: Thu Nov 26, 2015 4:08 am

Re: What should I write in esp_task_wdt_isr_user_handler()?

Postby ESP_Sprite » Tue Jul 28, 2020 1:28 pm

...What are you trying to do in the first place, as in, what is the purpose of killing and recreating the task? Whatever it is, doing stuff like this in an ISR is never going to work as none of those functions are intended to be called from an ISR.

Who is online

Users browsing this forum: No registered users and 20 guests