9 namespace wake_on_lan {
11 static const char *
const TAG =
"wake_on_lan.button";
12 static const uint8_t PREFIX[6] = {255, 255, 255, 255, 255, 255};
24 LOG_BUTTON(
"",
"Wake-on-LAN Button",
this);
30 ESP_LOGI(TAG,
"Sending Wake-on-LAN Packet...");
31 bool begin_status =
false;
32 bool end_status =
false;
33 IPAddress broadcast = IPAddress(255, 255, 255, 255);
37 begin_status = this->
udp_client_.beginPacketMulticast(broadcast, 9, ip, 128);
43 begin_status = this->
udp_client_.beginPacket(broadcast, 9);
48 for (
size_t i = 0; i < 16; i++) {
53 if (!begin_status || end_status) {
54 ESP_LOGE(TAG,
"Sending Wake-on-LAN Packet Failed!");
network::IPAddresses get_ip_addresses()
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...