TCP Server : Not able to read

preetam
Posts: 49
Joined: Thu Jan 26, 2017 2:31 pm
Location: Germany

TCP Server : Not able to read

Postby preetam » Fri Jun 02, 2017 1:00 pm

Hi All,

I am using two sparkfun esp32 thing, one is running TCP server on port 80 and another one is the client.

Client is able to resolve the Hostname and connect to TCP server, it also sends the message.But the server is not able to read.
The connection at the server end is successful but it stops at this command

n = read(clientsock, buf, BUFSIZE-1);

is anybody else facing this issue. If there is any resolution, Please let me know

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: TCP Server : Not able to read

Postby kolban » Fri Jun 02, 2017 1:08 pm

I think we need to look at the code you are using on both the client and the server. Can I suggest that you post both to pastebin.com and post the links to both in a followup post to this thread?
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

Who is online

Users browsing this forum: No registered users and 65 guests