Module esp_now

Source
Expand description

ESP-NOW is a kind of connectionless Wi-Fi communication protocol that is defined by Espressif.

In ESP-NOW, application data is encapsulated in a vendor-specific action frame and then transmitted from one Wi-Fi device to another without connection. CTR with CBC-MAC Protocol(CCMP) is used to protect the action frame for security. ESP-NOW is widely used in smart light, remote controlling, sensor, etc.

For more information see https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/network/esp_now.html

Structs§

EspNow
ESP-NOW is a kind of connectionless Wi-Fi communication protocol that is defined by Espressif. In ESP-NOW, application data is encapsulated in a vendor-specific action frame and then transmitted from one Wi-Fi device to another without connection. CTR with CBC-MAC Protocol(CCMP) is used to protect the action frame for security. ESP-NOW is widely used in smart light, remote controlling, sensor, etc.
EspNowManager
Manages the EspNow instance lifecycle while ensuring it remains active.
EspNowReceiver
This is the receiver part of ESP-NOW. You can get this receiver by splitting an EspNow instance.
EspNowSender
This is the sender part of ESP-NOW. You can get this sender by splitting a EspNow instance.
EspNowWithWifiCreateToken
A token used to create an EspNow instance while Wi-Fi is enabled.
PeerCount
Holds the count of peers in an ESP-NOW communication context.
PeerInfo
ESP-NOW peer information parameters.
ReceiveInfo
Information about a received packet.
ReceivedData
Stores information about the received data, including the packet content and associated information.
SendFuture
A future representing the result of an asynchronous ESP-NOW send operation.
SendWaiter
This struct is returned by a sync esp now send. Invoking wait method of this struct will block current task until the callback function of esp now send is called and return the status of previous sending.

Enums§

Error
Internal errors that can occur with ESP-NOW.
EspNowError
Common errors that can occur while using ESP-NOW driver.
WifiPhyRate
ESP-NOW rate of specified interface.

Constants§

BROADCAST_ADDRESS
Broadcast address
ESP_NOW_MAX_DATA_LEN
Maximum payload length

Functions§

enable_esp_now_with_wifi
Enables ESP-NOW while keeping Wi-Fi active.