ESPHome
2024.4.1
esphome
esphome
components
wake_on_lan
wake_on_lan.h
Go to the documentation of this file.
1
#pragma once
2
3
#ifdef USE_ARDUINO
4
5
#include "
esphome/components/button/button.h
"
6
#include "
esphome/core/component.h
"
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
esphome::wake_on_lan::WakeOnLanButton::press_action
void press_action() override
Definition:
wake_on_lan.cpp:29
esphome::wake_on_lan::WakeOnLanButton::set_macaddr
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
esphome::button::Button
Base class for all buttons.
Definition:
button.h:29
esphome::wake_on_lan::WakeOnLanButton::dump_config
void dump_config() override
Definition:
wake_on_lan.cpp:23
esphome::Component
Definition:
component.h:68
esphome::wake_on_lan::WakeOnLanButton::udp_client_
WiFiUDP udp_client_
Definition:
wake_on_lan.h:19
button.h
esphome::wake_on_lan::WakeOnLanButton::macaddr_
uint8_t macaddr_[6]
Definition:
wake_on_lan.h:21
esphome
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition:
a01nyub.cpp:7
component.h
esphome::wake_on_lan::WakeOnLanButton
Definition:
wake_on_lan.h:12
Generated by
1.8.13