Chapter · TCP and UDP
Choosing and using
How to choose by what an app needs, what QUIC adds on top of UDP, and where all of this shows up on an ESP32.
- 11Choosing, and meeting QUIC4 minChoose between TCP and UDP by what the application needs when a message is lost or late, not by which one sounds fast or important. QUIC is the newer answer, built on UDP and adding streams, recovery, congestion control and TLS 1.3.
- 12From the model to your ESP324 minOn an ESP32, WiFiClient is TCP and WiFiUDP is UDP, and both sit on top of lwIP, IP and Wi-Fi. A successful connect proves only the TCP handshake; each layer can fail in its own way, and the way it fails tells you which one.
Start at 11 and read down — the order is the order things get easier in. Or take the one with your part in it; every article stands on its own, and links back to whatever it needs.