Install the WakeOnLan library
mainArduino IDE
- Navigate to Tools -> Library Manager.
- Search for
WakeOnLanand install.
Alternatively, download the repository as a ZIP file and use Sketch -> Include Library -> Add .ZIP Library.
PlatformIO
Add the following to your platformio.ini file:
lib_deps = WakeOnLanOr use the git URL:
lib_deps = https://github.com/a7md0/WakeOnLan.gitlib_deps = WakeOnLan