Atmega328p interfaced with ESP8266, vibration sensor. atmega reads vibration data from the sensor at a frequency of 10khz. Each value is sent over UDP using esp8266 UART-Wi-Fi passthrough mode to a raspberry pi sitting at a distance. The sample number is 9000.
Like this, raspberry pi receives data from a 7 atmega boards. That is only 7 clients are there to transmitt vibration data to raspberry pi.
I was thinking of moving the UDP mode to TCP. As research tells that, TCP is able to do retransmission of packets if it is lost due to interference or anyother reason. Also, It has congestion controll, error checks, flow control.
What is the chance of congestion, error, flow control in a small LAN?
When I sent data to esp using command "AT+CIPSEND", How do I know the TCP buffer is full due to the TCP retransmission?