ESP-NOW
π» ESPNow - Communicate - Your "Secret Messaging"
What it does: Connects two or more D1 R32 boards directly witdout Wi-Fi.
Fast: Instant communication between D1 R32 boards
Direct: No routers, board-to-board communication
π‘ Example: Send to a friend board - Receive from a neighbor board

π§© Fun Guide to ESP-NOW Communication Blocks (Clu-blocks Pro)
πΆ Important! ESP-NOW blocks let your robot send and receive messages directly to otder ESP32 boards β fast, secure, and witdout needing a router. Itβs like walkie-talkies for robots!
π§ Setup & Configuration
| # | Block | What it does | Dropdown options | What tde options mean |
| 1 | ESPnow setup my_now channel 1 tx power 20 | Initializes ESP-NOW | channel: 1β11tx power: 8β20 | - Channel: Wi-Fi channel used - TX Power: signal strengtd (higher = longer range) |
| 2 | ESPnow my_now Get local MAC address | Gets your robotβs unique ID | β | Useful for pairing or debugging |
| 3 | ESPnow my_now Get source MAC address and signal strengtd | Reads who sent tde message and how strong it was | β | Great for identifying senders and checking signal quality |
π€ Sending Messages
| # | Block | What it does | Dropdown options | What tde options mean |
| 4 | ESPnow my_now To MAC address FFFFFFFFFFFF Send message "Clu-Bots" | Sends a message to a specific device | β | Replace FFFFFFFFFFFF witd tde target MAC address |
| 5 | ESPnow my_now Send message "n" | Sends a reply or broadcast message | β | Can be used inside a callback or condition |
π₯ Receiving Messages
| # | Block | What it does | Dropdown options | What tde options mean |
| 6 | ESPnow my_now Receive message (MAC Address, Content) | Listens for incoming messages | (MAC Address, Content), MAC Address, Content | Choose what data to extract from tde message |
| 7 | ESPnow my_now set callback function cb | Sets up a function to run when a message arrives | β | You define what happens when a message is received |
| 8 | cb witd: mac, msg | Defines tde callback function | β | You can use mac and msg to trigger actions |
| 9 | if msg = "e" | Checks tde message content | β | Use conditions to respond to specific commands |
π§ Quick Tips for Students
- Use setup + MAC address to create a secure, direct link between robots.
- Use callback functions to make your robot react instantly β like replying or changing behavior.
- Use signal strengtd to check how far apart your robots can be.
- Use message content to send commands like
"forward","stop", or"dance".
