espsss / reference / quick / esp-now-limits

ESP-NOW limits

How much data fits into one ESP-NOW frame, how many peers the list holds, and the channel and callback rules that most often break a working sketch. Values from the ESP-IDF v5.5.5 header, Kconfig and documentation and the arduino-esp32 3.3.12 ESP_NOW library.

In short

  • Payload per frame: 250 bytes with ESP-NOW v1.0, 1470 bytes with v2.0. A v1.0 receiver gets only the first 250 bytes of a longer v2.0 frame, or drops it.1
  • Up to 20 peers in the list. Encrypted peers are set by CONFIG_ESP_WIFI_ESPNOW_MAX_ENCRYPT_NUM: ESP-IDF default 7, at most 17 (ESP32-C2: default 2, at most 4).2
  • A peer's channel is 0 (use the current one) or must equal the channel the station or soft-AP is on.2
  • Send and receive callbacks run in the Wi-Fi task: keep them short and pass data to a queue.1

Limits

LimitValueNotes
Payload, ESP-NOW v1.0250 bytesESP_NOW_MAX_DATA_LEN2
Payload, ESP-NOW v2.01470 bytesESP_NOW_MAX_DATA_LEN_V2. v2.0 receivers accept v1.0 and v2.0 frames.2
Peers in the list20ESP_NOW_MAX_TOTAL_PEER_NUM. esp_now_add_peer() returns ESP_ERR_ESPNOW_FULL when the list is full.2
Encrypted peers (Kconfig)default 7, range 0…17CONFIG_ESP_WIFI_ESPNOW_MAX_ENCRYPT_NUM, all chips except ESP32-C2.31
Encrypted peers, ESP32-C2 (Kconfig)default 2, range 0…4Same option.3
Peer channel0…140 = the current channel; any other value must match the local channel.1
Key length (PMK, LMK)16 bytesESP_NOW_KEY_LEN2
Default bit rate1 MbpsThe Arduino library's default rate config is also 1 Mbps (11g).14

Rules that matter

Start Wi-Fi first

ESP-NOW data can only be sent after Wi-Fi is started; the docs recommend starting Wi-Fi before esp_now_init().1

Broadcast needs a peer entry

To send to the broadcast address (FF:FF:FF:FF:FF:FF in the Arduino library), add it as a peer first. Multicast frames cannot be encrypted.1

Receiving needs no peer, unless encrypted

Without peers a device receives broadcast and unencrypted unicast frames; encrypted unicast needs the peer with the same LMK.1

One radio, one channel

In station + soft-AP mode the soft-AP follows the station's channel, so a station connected to a router puts ESP-NOW on the router's channel. A channel mismatch makes esp_now_send() return ESP_ERR_ESPNOW_CHAN.5

Delivery is not guaranteed

ESP_NOW_SEND_SUCCESS means the frame was received on the MAC layer. The docs suggest application-level acks, retries and sequence numbers when needed.1

Encrypted peers and soft-AP clients share keys

ESP-NOW and the soft-AP use the same hardware key slots, so raising the encrypted peer count lowers the number of stations the soft-AP can accept.3

Pitfalls

Arduino ESP_NOW truncates long payloads

In the arduino-esp32 3.3.12 ESP_NOW library, ESP_NOW.write() and ESP_NOW_Peer::send() cut len to the maximum data length of the detected ESP-NOW version and return the truncated length. Check the return value or getMaxDataLen().6

Too fast sending reorders callbacks

Sending frames back to back can make send callbacks arrive out of order; the docs recommend sending the next frame after the previous send callback has returned.1

Where the sources disagree

Sources

Each number links here; open “What it confirms” for the exact quotes. Checked 2026-11-28.

  1. ESP-IDF v5.5.5 docs (ESP32-S3): ESP-NOW primary
    What it confirms (12)
    • ESP-NOW limits: in short “The maximum packet length supported by v2.0 devices is 1470 (ESP_NOW_MAX_DATA_LEN_V2) bytes, while the maximum packet length supported by v1.0 devices is 250 (ESP_NOW_MAX_DATA_LEN) bytes. … the v1.0 devices will either truncate the data to the first 250 (ESP_NOW_MAX_IE_DATA_LEN) bytes or discard the packet entirely.”
    • ESP-NOW limits: in short “The sending callback function runs from a high-priority Wi-Fi task. … The receiving callback function also runs from the Wi-Fi task.”
    • ESP-NOW limits: Encrypted peers (Kconfig) “the paired encryption devices are no more than 17, the default is 7”
    • ESP-NOW limits: Peer channel “The range of the channel of paired devices is from 0 to 14. If the channel is set to 0, data will be sent on the current channel. Otherwise, the channel must be set as the channel that the local device is on.”
    • ESP-NOW limits: Default bit rate “The default ESP-NOW bit rate is 1 Mbps.”
    • ESP-NOW limits: Start Wi-Fi first “ESP-NOW data must be transmitted after Wi-Fi is started, so it is recommended to start Wi-Fi before initializing ESP-NOW and stop Wi-Fi after de-initializing ESP-NOW.”
    • ESP-NOW limits: Broadcast needs a peer entry “A device with a broadcast MAC address must be added before sending broadcast data. … Encrypting multicast vendor-specific action frame is not supported. … const uint8_t BROADCAST_ADDR[6] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};”
    • ESP-NOW limits: Receiving needs no peer, unless encrypted “If no paired device is added, it can only receive broadcast packets and unencrypted unicast packets. To receive encrypted unicast packets, a paired device must be added, and the same LMK must be set.”
    • ESP-NOW limits: Delivery is not guaranteed “It will return ESP_NOW_SEND_SUCCESS in sending callback function if the data is received successfully on the MAC layer. … It is not guaranteed that application layer can receive the data.”
    • ESP-NOW limits: pitfall: Too fast sending reorders callbacks “Note that too short interval between sending two ESP-NOW data may lead to disorder of sending callback function. … it is recommended that sending the next ESP-NOW data after the sending callback function of the previous sending has returned.”
    • ESP-NOW limits: discrepancy (Maximum number of encrypted peers) “the paired encryption devices are no more than 17, the default is 7”
    • ESP-NOW limits: discrepancy (Payload bound: < or ≤) “send less than or equal to the maximum packet length (v1.0 is 250 bytes, v2.0 is 1470 bytes)”
  2. ESP-IDF v5.5.5: components/esp_wifi/include/esp_now.h primary
    What it confirms (8)
    • ESP-NOW limits: in short “#define ESP_NOW_MAX_TOTAL_PEER_NUM 20 /*!< Maximum number of ESPNOW total peers */ … range 0 17 if (!IDF_TARGET_ESP32C2) … default 7 if (!IDF_TARGET_ESP32C2) … range 0 4 if IDF_TARGET_ESP32C2 … default 2 if IDF_TARGET_ESP32C2”
    • ESP-NOW limits: in short “If the value is 0, use the current channel which station or softap is on. Otherwise, it must be set as the channel that station or softap is on.”
    • ESP-NOW limits: Payload, ESP-NOW v1.0 “#define ESP_NOW_MAX_IE_DATA_LEN 250 /**< Maximum data length in a vendor-specific element */ … #define ESP_NOW_MAX_DATA_LEN ESP_NOW_MAX_IE_DATA_LEN /**< Maximum length of data sent in each ESPNOW transmission for v1.0 */”
    • ESP-NOW limits: Payload, ESP-NOW v2.0 “#define ESP_NOW_MAX_DATA_LEN_V2 1470 /**< Maximum length of data sent in each ESPNOW transmission for v2.0 */ … The v2.0 devices are capable of receiving packets from both v2.0 and v1.0 devices. In contrast, v1.0 devices can only receive packets from other v1.0 devices.”
    • ESP-NOW limits: Peers in the list “#define ESP_NOW_MAX_TOTAL_PEER_NUM 20 /*!< Maximum number of ESPNOW total peers */ … ESP_ERR_ESPNOW_FULL : peer list is full”
    • ESP-NOW limits: Key length (PMK, LMK) “#define ESP_NOW_KEY_LEN 16 /*!< Length of ESPNOW peer local master key */”
    • ESP-NOW limits: discrepancy (Maximum number of encrypted peers) “#define ESP_NOW_MAX_ENCRYPT_PEER_NUM 6 /*!< Maximum number of ESPNOW encrypted peers */”
    • ESP-NOW limits: discrepancy (Payload bound: < or ≤) “The maximum length of data must be less than ESP_NOW_MAX_DATA_LEN”
  3. ESP-IDF v5.5.5: components/esp_wifi/Kconfig primary
    What it confirms (4)
    • ESP-NOW limits: Encrypted peers (Kconfig) “config ESP_WIFI_ESPNOW_MAX_ENCRYPT_NUM … range 0 17 if (!IDF_TARGET_ESP32C2) … default 7 if (!IDF_TARGET_ESP32C2)”
    • ESP-NOW limits: Encrypted peers, ESP32-C2 (Kconfig) “range 0 4 if IDF_TARGET_ESP32C2 … default 2 if IDF_TARGET_ESP32C2”
    • ESP-NOW limits: Encrypted peers and soft-AP clients share keys “And the espnow and SoftAP share the same hardware keys. So this configuration will affect the maximum connection number of SoftAP.”
    • ESP-NOW limits: discrepancy (Maximum number of encrypted peers) “default 7 if (!IDF_TARGET_ESP32C2)”
  4. arduino-esp32 3.3.12: libraries/ESP_NOW/src/ESP32_NOW.h primary
    What it confirms (1)
    • ESP-NOW limits: Default bit rate “.rate = WIFI_PHY_RATE_1M_L,”
  5. ESP-IDF v5.5.5: components/esp_wifi/include/esp_wifi.h primary
    What it confirms (1)
    • ESP-NOW limits: One radio, one channel “ESP devices are limited to only one channel, so when in the soft-AP+station mode, the soft-AP will adjust its channel automatically to be the same as … ESP_ERR_ESPNOW_CHAN: current Wi-Fi channel doesn't match that of peer”
  6. arduino-esp32 3.3.12: libraries/ESP_NOW/src/ESP32_NOW.cpp primary
    What it confirms (1)
    • ESP-NOW limits: pitfall: Arduino ESP_NOW truncates long payloads “if (len > max_data_len) { … len = max_data_len; … esp_err_t result = esp_now_send(mac, data, len); … max_data_len = ESP_NOW_MAX_DATA_LEN_V2;”