ESP-NOW says Delivery Fail, or nothing arrives

  • ESP32

You may see

Delivery Fail
Error initializing ESP-NOW
Failed to add peer

Why it happens

  • The receiver's MAC address is wrong.
  • The boards are on different Wi-Fi channels.
  • WiFi.mode(WIFI_STA) is missing.

How to fix it

  1. Upload the MAC address sketch to the receiver and copy the address it prints.
  2. Paste it as {0x24, 0x6F, …}, six parts.
  3. Put WiFi.mode(WIFI_STA); before esp_now_init() on both boards.
  4. Bring the boards within a metre to test.

It worked if: The sender prints Delivery Success.

From the official documentation. From Espressif's ESP-NOW documentation; the print text is from common example code. Sources: Espressif: ESP-NOW.

Didn't help? Search another error or ask us.