esp_wifi

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§

  • 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.
  • Manages the EspNow instance lifecycle while ensuring it remains active.
  • This is the receiver part of ESP-NOW. You can get this receiver by splitting an EspNow instance.
  • This is the sender part of ESP-NOW. You can get this sender by splitting a EspNow instance.
  • A token used to create an EspNow instance while Wi-Fi is enabled.
  • Holds the count of peers in an ESP-NOW communication context.
  • ESP-NOW peer information parameters.
  • Information about a received packet.
  • Stores information about the received data, including the packet content and associated information.
  • A future representing the result of an asynchronous ESP-NOW send operation.
  • 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§

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

Constants§

Functions§