Problem with ESP32 TCP Server
Posted: Wed Jun 19, 2019 5:57 am
Hi All,
I am working with esp32 in station mode as a TCP server. I want 6 TCP server to run simultaneously. But the problem is i see 7 tcp clients connect through the hercules terminal. In listen() i have kept the backlog value as -1. But still the 7 client connects.
In my while loop am only calling accept() 6 times. I dont see any data for the 7 client unless i disconnect one of the 6 clients connected to my servers. I dont want the 7th client to get connected.
Any help is appreciated.
I am working with esp32 in station mode as a TCP server. I want 6 TCP server to run simultaneously. But the problem is i see 7 tcp clients connect through the hercules terminal. In listen() i have kept the backlog value as -1. But still the 7 client connects.
In my while loop am only calling accept() 6 times. I dont see any data for the 7 client unless i disconnect one of the 6 clients connected to my servers. I dont want the 7th client to get connected.
Any help is appreciated.