Search found 2 matches

by maciekish
Wed Oct 25, 2023 5:46 pm
Forum: ESP32 Arduino
Topic: TCP Receive Buffering with WiFiClient
Replies: 2
Views: 2273

Re: TCP Receive Buffering with WiFiClient

I solved it by tagging the packets with NODELAY, setting the TOS and sending them OOB on the server side. Buffering must have happened at WiFi AP or ESP32. s.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) s.setsockopt(socket.IPPROTO_IP, socket.IP_TOS, 0x10) s.send(message.encode(), socket.MSG...
by maciekish
Tue Oct 24, 2023 3:45 pm
Forum: ESP32 Arduino
Topic: TCP Receive Buffering with WiFiClient
Replies: 2
Views: 2273

TCP Receive Buffering with WiFiClient

Hi, I need to receive about 100 bytes every 33ms on an ESP32. I have a Python server that sends this out and the ESP32 needs to react to each message immediately. However, I'm seeing these messages get buffered by the ESP. There is nothing else running, receving the bytes in loop(). I'm using the st...