summaryrefslogtreecommitdiff
path: root/+wakeup.example.lua
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-01-14 23:38:15 +0100
committerAki <please@ignore.pl>2024-01-14 23:54:16 +0100
commit8e04a77a96eccb86f775f7aa2bbc14ad587c313a (patch)
treec33a527c36e3f68c6c15d4ab2455cb9d0edc2892 /+wakeup.example.lua
parent892443f7ba47c8702f8bf3c052f2c7ffefe53f5b (diff)
downloadnodemcu-wakeup-8e04a77a96eccb86f775f7aa2bbc14ad587c313a.zip
nodemcu-wakeup-8e04a77a96eccb86f775f7aa2bbc14ad587c313a.tar.gz
nodemcu-wakeup-8e04a77a96eccb86f775f7aa2bbc14ad587c313a.tar.bz2
Config is now stored as wakeup module prototype
Diffstat (limited to '+wakeup.example.lua')
-rw-r--r--+wakeup.example.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/+wakeup.example.lua b/+wakeup.example.lua
new file mode 100644
index 0000000..e65c8a6
--- /dev/null
+++ b/+wakeup.example.lua
@@ -0,0 +1,22 @@
+--- Fill this file and save it on the device as "+wakeup.lua".
+return {
+ --- MAC address of the device to wake up. Formatted as twelve hexadecimal characters separated or not, for example:
+ ---
+ --- "1a:2b:3c:4d:5e:6f"
+ --- "1a 2b 3c 4d 5e 6f"
+ --- "1a2b3c4d5e6f"
+ ---
+ --- These three are equivalent.
+ mac=nil,
+ --- Broadcast address to send the magic packet to.
+ addr="255.255.255.255",
+ --- Wake-on-LAN port.
+ port=9,
+ --- Not yet implemented time description of when to wake up the device.
+ when=nil,
+ --- Wi-Fi configuration same as passed to wifi.config(). It won't be used if left as nil. In this case user is
+ --- expected to manually configure and persist AP in the flash.
+ wifi=nil,
+ --- SNTP server address or table of addresses. See sntp.sync().
+ sntp="time.google.com",
+}