reason for watchdog trigger.

f.h-f.s.
Posts: 214
Joined: Thu Dec 08, 2016 2:53 pm

Re: reason for watchdog trigger.

Postby f.h-f.s. » Sat Dec 23, 2017 10:57 am

did you try to add a "vTaskDelay(100/portTICK_RATE_MS);"

Code: Select all

do{
rv = select(n, &readfds, NULL, NULL, &tv);

#if (defined WIFI_DEBUG_PRINT) && (defined WIFI_SERVER_LINK_STATUS)
ESP_LOGI(Display, "\n\nselect returns= %d\n\n",rv);
#endif

if (rv > 0)
{
if (FD_ISSET(s, &readfds))
{
bzero(recv_buf, sizeof(recv_buf));

read(s, recv_buf, sizeof(recv_buf)-1);

strcat(response_buffer,recv_buf);
}
}
vTaskDelay(100/portTICK_RATE_MS);
}while(rv>0);
#if (defined WIFI_DEBUG_PRINT) && (defined WIFI_SERVER_LINK_STATUS)
ESP_LOGI(Display, "\n\nDoWhile done\n\n");
#endif

Who is online

Users browsing this forum: axellin, Bing [Bot], Majestic-12 [Bot] and 50 guests