Netdev interface for the ESP-NOW WiFi P2P protocol. More...
Netdev interface for the ESP-NOW WiFi P2P protocol.
Definition in file esp_now_netdev.h.
#include "net/netdev.h"
Include dependency graph for esp_now_netdev.h:Go to the source code of this file.
Data Structures | |
| struct | esp_now_pkt_hdr_t |
| Header with necessary flags for ESP-NOW packets. More... | |
| struct | esp_now_netdev_t |
| Device descriptor for ESP-NOW devices. More... | |
| #define | ESP_NOW_MAX_SIZE_RAW (250) |
| Maximum raw packet size that can be used with ESP-NOW (including headers) | |
| #define | ESP_NOW_ADDR_LEN ETHERNET_ADDR_LEN |
| Length of ESP-NOW addresses. | |
| #define | ESP_NOW_HEADER_LENGTH (sizeof(esp_now_pkt_hdr_t)) |
| Size of non-data header elements in ESP-NOW packet. | |
| #define | ESP_NOW_MAX_SIZE (ESP_NOW_MAX_SIZE_RAW - ESP_NOW_HEADER_LENGTH) |
| Maximum packet size that can be used with ESP-NOW. | |
| #define | ESP_NOW_BUFSIZE (ESP_NOW_MAX_SIZE_RAW + ESP_NOW_ADDR_LEN) |
| buffer size used for RX buffering More... | |
| #define | ESP_NOW_PKT_HDR_FLAG_SIXLO (1) |
| Packet is carrying 6Lo data. | |
| const netdev_driver_t | esp_now_driver |
| Reference to the netdev device driver struct. | |
| esp_now_netdev_t * | netdev_esp_now_setup (void) |
| ESP-NOW netdev initialization function. More... | |
| int | esp_now_set_channel (uint8_t channel) |
| Set the channel used by ESP-NOW netdev. More... | |
| #define ESP_NOW_BUFSIZE (ESP_NOW_MAX_SIZE_RAW + ESP_NOW_ADDR_LEN) |
buffer size used for RX buffering
The buffer is use to store a ESP-NOW packet and the source MAC address.
Definition at line 55 of file esp_now_netdev.h.
| int esp_now_set_channel | ( | uint8_t | channel | ) |
Set the channel used by ESP-NOW netdev.
| channel | Channel to be used |
| esp_now_netdev_t* netdev_esp_now_setup | ( | void | ) |
ESP-NOW netdev initialization function.