Search found 22 matches

by peterglen
Wed Mar 28, 2018 9:19 pm
Forum: ESP-IDF
Topic: ESP32 STA Mode, delay
Replies: 1
Views: 1130

ESP32 STA Mode, delay

I have an HTTP server running on the ESP32, works well, but randomly there is 3-30 sec delay on response. When the responses stop, I also cannot ping the board from my PC.
by peterglen
Wed Mar 28, 2018 9:14 pm
Forum: General Discussion
Topic: How getting immediate alert when TCP connection is closed ?
Replies: 1
Views: 1568

Re: How getting immediate alert when TCP connection is closed ?

Use MSG_PEEK | MSG_DONTWAIT for seeing if the socket has data before recv blocks: Here is a snippet that might help: ////////////////////////////////////////////////////////////////////////// // Wait until data arrives, bail out if got end of HTML or closed socket // static int peekrecv(int sock, ch...

Go to advanced search