✨ 添加开机通知配置项 config.BOOT_NOTIFY
This commit is contained in:
parent
c8dc8d3c13
commit
7d0fa89224
@ -38,5 +38,8 @@ return {
|
||||
QUERY_TRAFFIC_INTERVAL = 1000 * 60 * 60 * 6,
|
||||
--
|
||||
-- 定时基站定位间隔, 单位毫秒, 设置为 0 关闭
|
||||
LOCATION_INTERVAL = 1000 * 60 * 30
|
||||
LOCATION_INTERVAL = 1000 * 60 * 30,
|
||||
--
|
||||
-- 开机通知
|
||||
BOOT_NOTIFY = true,
|
||||
}
|
||||
|
@ -82,7 +82,9 @@ sys.taskInit(
|
||||
sys.waitUntil("COORD_INIT_DONE", 1000 * 20)
|
||||
|
||||
-- 开机通知
|
||||
util_notify.send("#BOOT")
|
||||
if config.BOOT_NOTIFY then
|
||||
util_notify.send("#BOOT")
|
||||
end
|
||||
|
||||
-- 定时查询流量
|
||||
if config.QUERY_TRAFFIC_INTERVAL and config.QUERY_TRAFFIC_INTERVAL >= 1000 * 60 then
|
||||
|
Loading…
Reference in New Issue
Block a user