pdf-icon

I apologize for the misunderstanding earlier. Here's the information including the statements for the images:

ESP-NOW

Function Description

ESP-NOW is a short-range, low-power communication protocol that allows multiple devices to communicate without the need for or the use of Wi-Fi. This protocol is similar to the low-power 2.4GHz wireless connection commonly found in wireless mice—devices must be paired before they can communicate. Once paired, the connection between devices is continuous, point-to-point, and does not require a handshake protocol.

ESP-NOW Communication Protocol

init set channel data type

  • Initializes a data type for a specific channel.

Add peer id ifidx encrypt

  • Adds a specified MAC address and sets it as id.

set AP mode ssid password

  • Sets the pairing key.

send id data

  • Sends data to a specific channel.

broadcast send data

  • Broadcasts data.

set primary master key

  • Sets the primary master key.

get mac address mode

  • Sets how to obtain the MAC address.

get remote ssid

  • Gets the WiFi name of the remote MAC host.

receive callback

  • Gets the MAC and data of the callback function.

after send callback flag

  • Sets the flag after the send callback function and processes the data.

Usage Instructions

Receiver

Displays the device's MAC address, received data, WiFi name, remote host MAC address, and sent data on the screen.

Note: The variable names created cannot be the same as the parameter names, meaning you cannot use names such as "addr" or "data" for variables intended for data retrieval.

Receiver Display

Sender

Displays the device's MAC address, received data, WiFi name, remote host MAC address, and sent data on the screen. Sets the button to send and stop functionality.

Note: The variable names created cannot be the same as the parameter names, meaning you cannot use "flag" as a variable name for data retrieval.

Sender Display

After completing the program editing, run the receiver and transmitter programs respectively to achieve ESP-NOW short-range wireless communication.

On This Page