添加循环开启电源脚本

This commit is contained in:
CSSC-WORK\murmur 2023-09-28 08:38:51 +08:00
parent aec5e8b9e7
commit fcd9d12dc2

13
测试主板.lua Normal file
View 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)