ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::espnow Namespace Reference

Namespaces

namespace  platform
 

Data Structures

class  ESPNowPacket
 
struct  ESPNowRecvInfo
 
class  ESPNowSendPacket
 
class  ESPNowTransport
 
class  OnBroadcastTrigger
 
class  OnReceiveTrigger
 
class  OnUnknownPeerTrigger
 
class  SendAction
 
struct  WifiPacketRxControl
 

Typedefs

using send_callback_t = std::function<void(esp_err_t)>
 
using rx_ctrl_t = wifi_pkt_rx_ctrl_t
 
using esp_err_t = int32_t
 

Enumerations

enum  esp_now_send_status_t : uint8_t { ESP_NOW_SEND_SUCCESS = 0 , ESP_NOW_SEND_FAIL = 1 }
 

Functions

 ESPHOME_LOG_TAG (TAG, "espnow")
 
const char * esp_err_to_name (esp_err_t err)
 
 ESPHOME_LOG_TAG (TAG, "espnow.transport")
 

Variables

ESPNowComponent * global_esp_now = nullptr
 

Typedef Documentation

◆ esp_err_t

using esphome::espnow::esp_err_t = int32_t

Definition at line 43 of file espnow_types.h.

◆ rx_ctrl_t

typedef WifiPacketRxControl esphome::espnow::rx_ctrl_t = wifi_pkt_rx_ctrl_t

Definition at line 32 of file espnow_types.h.

◆ send_callback_t

using esphome::espnow::send_callback_t = std::function<void(esp_err_t)>

Definition at line 43 of file espnow_packet.h.

Enumeration Type Documentation

◆ esp_now_send_status_t

Enumerator
ESP_NOW_SEND_SUCCESS 
ESP_NOW_SEND_FAIL 

Definition at line 62 of file espnow_types.h.

Function Documentation

◆ esp_err_to_name()

const char * esphome::espnow::esp_err_to_name ( esp_err_t err)
inline

Definition at line 56 of file espnow_types.h.

◆ ESPHOME_LOG_TAG() [1/2]

esphome::espnow::ESPHOME_LOG_TAG ( TAG ,
"espnow"  )

◆ ESPHOME_LOG_TAG() [2/2]

esphome::espnow::ESPHOME_LOG_TAG ( TAG ,
"espnow.transport"  )

Variable Documentation

◆ global_esp_now

ESPNowComponent* esphome::espnow::global_esp_now = nullptr

Definition at line 25 of file espnow_component.cpp.