Communication Protocols
Every time your phone loads a page, your ESP32 sends a sensor reading, or a smartwatch talks to an app, two machines are following a shared set of rules about who speaks first, how the message is shaped, and what to do when something gets lost. That set of rules is a communication protocol. This track explains the protocols you meet most often as a web, mobile or IoT developer, one at a time, with diagrams of what actually travels over the wire.
The Big Picture
Protocols are stacked in layers. The lower layers move bits and packets from one device to another; the layers above them decide what the bytes mean. Most of the protocols in this track sit on top of TCP, and one of them (Bluetooth LE) has a small stack of its own.
What You'll Learn In This Track
| Lesson | What it answers |
|---|---|
| TCP vs UDP | How data is delivered: the three-way handshake, retransmission, and when giving up reliability is the right call |
| HTTP & HTTPS | What a request and a response look like, status codes, and what the TLS handshake and certificates add |
| WebSocket | How a normal HTTP request turns into a two-way connection for chat, live dashboards and games |
| MQTT | Publish and subscribe through a broker, topics, QoS levels, and why IoT devices like it |
| Bluetooth Low Energy (BLE) | Advertising, connections, and the GATT model of services and characteristics |
Where This Meets the Rest of the Site
- Calling a web API from an app: Android HTTP Basics and OkHttp.
- Live data in an app: Android WebSockets.
- Putting an ESP32 on a network or talking to a phone: Connecting to Wi-Fi and Bluetooth & BLE.
More Protocols Are Coming
The track will keep growing. Planned next:
CoAPDNSFTP & SFTPSMTPZigbeeLoRa & LoRaWANUARTI2CSPIRS-485 & ModbusCAN bus