ESP8266 TCP server stops

Amir_H
Posts: 2
Joined: Fri Apr 13, 2018 6:32 pm

ESP8266 TCP server stops

Postby Amir_H » Fri Apr 13, 2018 6:38 pm

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

Jessica
Posts: 1
Joined: Wed May 30, 2018 3:17 pm

Re: ESP8266 TCP server stops

Postby Jessica » Wed May 30, 2018 3:21 pm

It's probably because the MAX_SOCK_NUM is 4 defined in the Ethernet.h file. So we cannot connect more than 4 TCP connections which is restricted by the small memory size of the TCP/IP stack in ESP8266 and if we exceed the fixed number the board crashes.
My home is my castle

Who is online

Users browsing this forum: No registered users and 2 guests