arduino-audio-tools
Loading...
Searching...
No Matches
Public Attributes | List of all members
ESPNowStreamConfig Struct Reference

Configuration for ESP-NOW protocolö.W. More...

#include <ESPNowStream.h>

Public Attributes

uint32_t ack_semaphore_timeout_ms = portMAX_DELAY
 Timeout for ACK semaphore (ms). Default: portMAX_DELAY.
 
uint16_t buffer_count = ( (240 * 400) / ESP_NOW_MAX_DATA_LEN )
 
uint16_t buffer_size = ESP_NOW_MAX_DATA_LEN
 
int channel = 0
 WiFi channel to use (0 for auto). Default: 0.
 
uint16_t delay_after_failed_write_ms = 2000
 Delay after failed write (ms). Default: 2000.
 
uint16_t delay_after_updating_mac_ms = 500
 Delay after updating mac.
 
const char * local_master_key = nullptr
 Local master key for encryption (16 bytes, optional). Default: nullptr.
 
const char * mac_address = nullptr
 
uint32_t oui = 0
 
const char * password = nullptr
 WiFi password for connection (optional). Default: nullptr.
 
wifi_phy_mode_t phymode = WIFI_PHY_MODE_11G
 ESP-NOW PHY mode. Default: WIFI_PHY_MODE_11G.
 
const char * primary_master_key = nullptr
 Primary master key for encryption (16 bytes, optional). Default: nullptr.
 
wifi_phy_rate_t rate = WIFI_PHY_RATE_6M
 ESP-NOW bit rate. Default: WIFI_PHY_RATE_6M.
 
void(* recveive_cb )(const esp_now_recv_info *info, const uint8_t *data, int data_len) = nullptr
 Receive callback for ESP-NOW (esp-idf >= 5.0.0). Default: nullptr.
 
const char * ssid = nullptr
 WiFi SSID for connection (optional). Default: nullptr.
 
uint8_t start_read_threshold_percent = 0
 Buffer fill threshold (percent) to start reading. Default: 0.
 
bool use_long_range = false
 
bool use_send_ack = true
 Use send acknowledgments to prevent buffer overflow. Default: true.
 
wifi_mode_t wifi_mode = WIFI_STA
 WiFi mode (station or access point). Default: WIFI_STA.
 
int write_retry_count = 1
 Number of write retries (-1 for endless). Default: 1.
 

Detailed Description

Configuration for ESP-NOW protocolö.W.

Author
Phil Schatzmann

Member Data Documentation

◆ buffer_count

uint16_t buffer_count = ( (240 * 400) / ESP_NOW_MAX_DATA_LEN )

Number of packet buffers allocated. Default: 65 or 400 depending on esp-idf version

◆ buffer_size

uint16_t buffer_size = ESP_NOW_MAX_DATA_LEN

Size of each ESP-NOW packet buffer (bytes). Default: 1470 or 240 depending on esp-idf version

◆ mac_address

const char* mac_address = nullptr

MAC address to use for the ESP-NOW interface (nullptr for default). Default: nullptr

◆ oui

uint32_t oui = 0

Set the OUI (Organization Identifier) in the vendor-specific element for ESPNOW.


The documentation for this struct was generated from the following file: