|
ESPHome 2025.12.0-dev
|
Data Structures | |
| class | AddPeerAction |
| class | DeletePeerAction |
| class | ESPNowBroadcastedHandler |
| Handler interface for receiving broadcasted ESPNow packets Components should inherit from this class to handle incoming ESPNow data. More... | |
| class | ESPNowComponent |
| class | ESPNowPacket |
| struct | ESPNowPeer |
| class | ESPNowReceivedPacketHandler |
| Handler interface for receiving ESPNow packets Components should inherit from this class to handle incoming ESPNow data. More... | |
| struct | ESPNowRecvInfo |
| class | ESPNowSendPacket |
| class | ESPNowTransport |
| class | ESPNowUnknownPeerHandler |
| Handler interface for receiving ESPNow packets from unknown peers Components should inherit from this class to handle incoming ESPNow data. More... | |
| class | OnBroadcastedTrigger |
| class | OnReceiveTrigger |
| class | OnUnknownPeerTrigger |
| class | SendAction |
| class | SetChannelAction |
| struct | WifiPacketRxControl |
Typedefs | |
| using | peer_address_t = std::array<uint8_t, ESP_NOW_ETH_ALEN> |
| using | send_callback_t = std::function<void(esp_err_t)> |
Enumerations | |
| enum class | ESPNowTriggers : uint8_t { TRIGGER_NONE = 0 , ON_NEW_PEER = 1 , ON_RECEIVED = 2 , ON_BROADCASTED = 3 , ON_SUCCEED = 10 , ON_FAILED = 11 } |
| enum | ESPNowState : uint8_t { ESPNOW_STATE_OFF = 0 , ESPNOW_STATE_DISABLED , ESPNOW_STATE_ENABLED } |
Functions | |
| std::string | peer_str (uint8_t *peer) |
| void | on_send_report (const esp_now_send_info_t *info, esp_now_send_status_t status) void on_send_report(const uint8_t *mac_addr |
| if (packet==nullptr) | |
| packet | load_sent_data (info->des_addr, status) |
| packet | load_sent_data (mac_addr, status) |
| global_esp_now receive_packet_queue_ | push (packet) |
| App | wake_loop_threadsafe () |
| void | on_data_received (const esp_now_recv_info_t *info, const uint8_t *data, int size) |
Variables | |
| ESPNowComponent * | global_esp_now = nullptr |
| void esp_now_send_status_t | status |
| using esphome::espnow::peer_address_t = std::array<uint8_t, ESP_NOW_ETH_ALEN> |
Definition at line 29 of file espnow_component.h.
| using esphome::espnow::send_callback_t = std::function<void(esp_err_t)> |
Definition at line 34 of file espnow_packet.h.
| enum esphome::espnow::ESPNowState : uint8_t |
| Enumerator | |
|---|---|
| ESPNOW_STATE_OFF | Nothing has been initialized yet. |
| ESPNOW_STATE_DISABLED | ESPNOW is disabled. |
| ESPNOW_STATE_ENABLED | ESPNOW is enabled. |
Definition at line 40 of file espnow_component.h.
|
strong |
| Enumerator | |
|---|---|
| TRIGGER_NONE | |
| ON_NEW_PEER | |
| ON_RECEIVED | |
| ON_BROADCASTED | |
| ON_SUCCEED | |
| ON_FAILED | |
Definition at line 31 of file espnow_component.h.
| esphome::espnow::if | ( | packet | = = nullptr | ) |
Definition at line 85 of file espnow_component.cpp.
| packet esphome::espnow::load_sent_data | ( | info-> | des_addr, |
| status | ) |
| packet esphome::espnow::load_sent_data | ( | mac_addr | , |
| status | ) |
| void esphome::espnow::on_data_received | ( | const esp_now_recv_info_t * | info, |
| const uint8_t * | data, | ||
| int | size ) |
Definition at line 108 of file espnow_component.cpp.
| void esphome::espnow::on_send_report | ( | const esp_now_send_info_t * | info, |
| esp_now_send_status_t | status ) const |
| std::string esphome::espnow::peer_str | ( | uint8_t * | peer | ) |
Definition at line 65 of file espnow_component.cpp.
| global_esp_now receive_packet_queue_ esphome::espnow::push | ( | packet | ) |
| App esphome::espnow::wake_loop_threadsafe | ( | ) |
| ESPNowComponent * esphome::espnow::global_esp_now = nullptr |
Definition at line 30 of file espnow_component.cpp.
| void esp_now_send_status_t esphome::espnow::status |
Definition at line 80 of file espnow_component.cpp.