20 void setup()
override;
25 memcpy(this->
peer_address_.data(), address.data(), ESP_NOW_ETH_ALEN);
33 void send_packet(
const std::vector<uint8_t> &buf)
const override;
Helper class to easily give an object a parent of type T.
Handler interface for receiving broadcasted ESPNow packets Components should inherit from this class ...
Handler interface for receiving ESPNow packets Components should inherit from this class to handle in...
float get_setup_priority() const override
bool on_received(const ESPNowRecvInfo &info, const uint8_t *data, uint8_t size) override
bool on_broadcasted(const ESPNowRecvInfo &info, const uint8_t *data, uint8_t size) override
void send_packet(const std::vector< uint8_t > &buf) const override
bool should_send() override
size_t get_max_packet_size() override
std::vector< uint8_t > packet_buffer_
void set_peer_address(peer_address_t address)
peer_address_t peer_address_
std::array< uint8_t, ESP_NOW_ETH_ALEN > peer_address_t
const float AFTER_WIFI
For components that should be initialized after WiFi is connected.
Providing packet encoding functions for exchanging data with a remote host.