ESPHome  2024.4.1
wake_on_lan.h
Go to the documentation of this file.
1 #pragma once
2 
3 #ifdef USE_ARDUINO
4 
7 #include "WiFiUdp.h"
8 
9 namespace esphome {
10 namespace wake_on_lan {
11 
12 class WakeOnLanButton : public button::Button, public Component {
13  public:
14  void set_macaddr(uint8_t a, uint8_t b, uint8_t c, uint8_t d, uint8_t e, uint8_t f);
15 
16  void dump_config() override;
17 
18  protected:
19  WiFiUDP udp_client_{};
20  void press_action() override;
21  uint8_t macaddr_[6];
22 };
23 
24 } // namespace wake_on_lan
25 } // namespace esphome
26 
27 #endif
void set_macaddr(uint8_t a, uint8_t b, uint8_t c, uint8_t d, uint8_t e, uint8_t f)
Definition: wake_on_lan.cpp:14
Base class for all buttons.
Definition: button.h:29
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7