LESSONMicrocontrollers · Part 7EP.97 · 24 s

ESP-NOW: two ESP32s talk without a router

// WHAT YOU WILL LEARN

Two ESP32 boards send short messages straight to each other by MAC address (up to 250 bytes per message), no Wi-Fi router needed.

// LESSON NOTES

You asked, @laks_h_0602 — can two ESP32 boards talk without a Wi-Fi router? YES: ESP-NOW! 📡

1️⃣ DIRECT: ESP-NOW is Espressif's own protocol for ESP32 (and ESP8266) boards. One board sends a message straight to another, addressed by its MAC address — no router in between.

2️⃣ FAST + SMALL: no Wi-Fi network, no internet. Messages arrive in milliseconds, up to 250 bytes each, on the same 2.4 GHz radio as Wi-Fi (open-air range is often 100 m or more).

3️⃣ TRY IT: in your sketch, esp_now_send(mac, data, len) sends; on the other board a callback runs when the data arrives. Press a button on one ESP32 → an LED lights on the other. Perfect for remotes, robots and sensors (up to 20 paired boards).

Board to board, no router!

Read the voiceover (transcript)
  1. Two boards, no router. Can they talk?
  2. Yes, with ESP Now! One board messages another directly, by its MAC address.
  3. No network needed. Messages arrive in milliseconds, up to two hundred fifty bytes.
  4. Perfect for remotes and robots. Press a button here, and an LED lights over there!
  5. Board to board, no router!
  6. Next: the Pico board! Follow for Lesson eight!

Related lessons