13 lines
339 B
Lua
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) |