From 8604a783a4c2b8faf1f969d6b5ce74890ede6b42 Mon Sep 17 00:00:00 2001 From: crxporter <38265886+crxporter@users.noreply.github.com> Date: Mon, 19 Jul 2021 11:23:48 -0500 Subject: [PATCH] Added to wol node: num_packets and interval options (#819) --- io/wol/39-wol.html | 14 ++++++++++++-- io/wol/39-wol.js | 16 ++++++++++++++-- io/wol/package.json | 2 +- 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/io/wol/39-wol.html b/io/wol/39-wol.html index def6eac3..5e5ad0ec 100644 --- a/io/wol/39-wol.html +++ b/io/wol/39-wol.html @@ -12,6 +12,14 @@ +
Sends a Wake-On-LAN magic packet to the mac address specified.
You may instead set msg.mac
to dynamically set the target device mac to wake up.
The address of the target machine can optionally be set using msg.host
You can likewise set the destination UDP port using msg.udpport
You can likewise set the destination UDP port, number of packets sent, and interval between packets using msg.udpport
, msg.numpackets
, msg.interval
.
Setting the target address to the broadcast address of the subnet that the target machine is attached to works best. For a class C address this is usually just the first three parts of the ip address followed by 255. eg 192.168.1.255.
-You can specify the target UDP port, default is 9.
+You can specify the target UDP port (default 9), number of packets sent (default 3), and interval between packets (default 100ms).