Inconsistency using UDP with two ESP8266's

Here are my thoughts regarding UDP, TCP, HTTP.

Data Transmission on Microcontrollers (UDP TCP HTTP Overview for ESP8266 ESP32 Arduino UNO/NANO/MEGA)

UDP (from Wikipedia)

It has no handshaking dialogues and thus exposes the user's program to any unreliability of the underlying network; there is no guarantee of delivery, ordering, or duplicate protection.

If you don't need Broadcasts or Multicasts but bidirectional data communication, I would chose TCP (or even HTTP).

1 Like