Mongoose networking task problem

mpulis
Posts: 57
Joined: Mon Aug 07, 2017 7:53 am

Mongoose networking task problem

Postby mpulis » Mon Aug 07, 2017 8:05 am

Hi,

I am currently using the Mongoose networking library to handle HTTP requests to the ESP32. I left the device connected to an Ethernet LAN overnight and came back the next morning to find that the entire network had crashed. Immediately as I disconnected the device from the network, everything went back to normal. Overnight the device was not receiving any HTTP requests, i.e. it was merely running the following code continuously:

Code: Select all

while (1)
{
	mg_mgr_poll(&mgr, 1000);
	ESP_LOGI(TAG,"mongooseTask: Polling");
	
	if(sRebootAfterReply==1)
	{
		currtick = systick;
		sRebootAfterReply = 2;
	}
	if(systick-currtick >= 5000 && sRebootAfterReply == 2)
	{
		esp_restart();
	}
}
Has anybody using the Mongoose networking library ever encountered this problem before?

Thankyou,
Matthew

Who is online

Users browsing this forum: Majestic-12 [Bot] and 86 guests