添加循环开启电源脚本
This commit is contained in:
parent
aec5e8b9e7
commit
fcd9d12dc2
13
测试主板.lua
Normal file
13
测试主板.lua
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
local cmdON="out1\r\n"
|
||||||
|
local cmdOFF="out0\r\n"
|
||||||
|
local sendDelay=1*60*1000
|
||||||
|
|
||||||
|
sys.taskInit(function ()
|
||||||
|
while true do
|
||||||
|
sys.wait(10*1000)
|
||||||
|
log.info("开机",apiSendUartData(cmdON),cmdON)
|
||||||
|
sys.wait(sendDelay)
|
||||||
|
log.info("关机",apiSendUartData(cmdOFF),cmdOFF)
|
||||||
|
--sys.wait(10*1000)
|
||||||
|
end
|
||||||
|
end)
|
Loading…
Reference in New Issue
Block a user