ESP8266 wake-on-lan any LAN device via Telegram Bot!
src/secrets.cpp
;#include "secrets.h"
String telegramToken = ""; // your bot token
char ssid[] = ""; // your network SSID (name)
char password[] = ""; // your network password
src/devices.cpp
;#include "devices.h"
int numDevices = 2;
TargetDevice devices[] ={
{
"PC", // any device name (will show in list of devices)
IPAddress(192, 168, 1, 2),
{ 0xA1, 0xA1, 0xA1, 0xA1, 0xA1, 0xA1 }, // device MAC address in hex format
"", // empty state
5 // default retry counter
},
};
src/main.cpp
to ESP8266 (using PlatformIO);