ESPHome 2025.9.0-dev
|
Handler interface for receiving ESPNow packets Components should inherit from this class to handle incoming ESPNow data. More...
#include <espnow_component.h>
Public Member Functions | |
virtual bool | on_received (const ESPNowRecvInfo &info, const uint8_t *data, uint8_t size)=0 |
Called when an ESPNow packet is received. | |
Handler interface for receiving ESPNow packets Components should inherit from this class to handle incoming ESPNow data.
Definition at line 70 of file espnow_component.h.
|
pure virtual |
Called when an ESPNow packet is received.
info | Information about the received packet (sender MAC, etc.) |
data | Pointer to the received data payload |
size | Size of the received data in bytes |
Implemented in esphome::espnow::OnReceiveTrigger.