user_script/测试主板.lua
2023-09-28 08:38:51 +08:00

13 lines
339 B
Lua

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)