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 charlocal_master_key = nullptr
 Local master key for encryption (16 bytes, optional). Default: nullptr.
 
const charmac_address = nullptr
 
uint32_t oui = 0
 
const charpassword = 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 charprimary_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 charssid = 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

◆ ack_semaphore_timeout_ms

uint32_t ack_semaphore_timeout_ms = portMAX_DELAY

Timeout for ACK semaphore (ms). Default: portMAX_DELAY.

◆ 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

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

◆ channel

int channel = 0

WiFi channel to use (0 for auto). Default: 0.

◆ delay_after_failed_write_ms

uint16_t delay_after_failed_write_ms = 2000

Delay after failed write (ms). Default: 2000.

◆ delay_after_updating_mac_ms

uint16_t delay_after_updating_mac_ms = 500

Delay after updating mac.

◆ local_master_key

const char* local_master_key = nullptr

Local master key for encryption (16 bytes, optional). Default: nullptr.

◆ 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.

◆ password

const char* password = nullptr

WiFi password for connection (optional). Default: nullptr.

◆ phymode

ESP-NOW PHY mode. Default: WIFI_PHY_MODE_11G.

◆ primary_master_key

const char* primary_master_key = nullptr

Primary master key for encryption (16 bytes, optional). Default: nullptr.

◆ rate

ESP-NOW bit rate. Default: WIFI_PHY_RATE_6M.

◆ recveive_cb

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.

◆ ssid

const char* ssid = nullptr

WiFi SSID for connection (optional). Default: nullptr.

◆ start_read_threshold_percent

uint8_t start_read_threshold_percent = 0

Buffer fill threshold (percent) to start reading. Default: 0.

◆ use_long_range

bool use_long_range = false

◆ use_send_ack

bool use_send_ack = true

Use send acknowledgments to prevent buffer overflow. Default: true.

◆ wifi_mode

wifi_mode_t wifi_mode = WIFI_STA

WiFi mode (station or access point). Default: WIFI_STA.

◆ write_retry_count

int write_retry_count = 1

Number of write retries (-1 for endless). Default: 1.


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