njh / EtherCard

EtherCard is an IPv4 driver for the ENC28J60 chip, compatible with Arduino IDE
https://www.aelius.com/njh/ethercard/
GNU General Public License v2.0
1.03k stars 455 forks source link

Add feature receive Wake-On-Lan WOL on Arduino #429

Open barrydegraaff opened 1 year ago

barrydegraaff commented 1 year ago

Via this PR I am adding a feature that allows your Arduino to receive Wake-On-Lan WOL packets.

What? Arduino sleepmode? No!

The idea is to have a minimal way to send a push notification from some device on your network to the Arduino. And once the Arduino receives the packet it can take some action.

This method requires very little in terms of processing power, and can work almost instantaneously. See the example provided. Which can be combined with the webClient example to have the Arduino fetch something via HTTP when a WOL magic packet is received.