Page 1 of 1

ESP8266 TCP server stops

Posted: Tue Apr 17, 2018 1:54 pm
by Amir_H
I'm working with the ESP8266 module, and i have a strange problem, when i communicate with the device over a android tablet, i have a connection, also i can communicate, but the problem is that in the middle of the communication it stops, for few seconds and starts again. I've checked the code on the tablet application, it's fine, also i've checked the code on the MCU which drives the ESP module, it's also ok. What could it be that the communication with the server stops. :x :x :x :x :x

Re: ESP8266 TCP server stops

Posted: Thu May 10, 2018 10:58 am
by Her Mary
Maybe you should capture the WiFi packets by wireshark or omnipeek for debugging.

Re: ESP8266 TCP server stops

Posted: Fri Jun 08, 2018 7:22 pm
by Diceus
Probably lwip (leightweight IP stack) keeps allocating packets. Even closed connections remain in a WAITING state before being deallocated. So you'll eventually run out of memory (~40kB heap on the esp8266) or TCP packet buffers