summaryrefslogtreecommitdiff
path: root/+wakeup.example.lua
blob: a60e684f073551cd918cb910e88f3b8c8f7c29fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- 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,
	--- On what hour and/or minutes to wahe up the device:
	---
	--- 	{hour=23, min=0}
	--- 	{min=30}
	---
	--- First will send wakeup packets each day on 23:00 UTC. Second will send them every half past each hour.
	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",
}