diff --git a/测试主板.lua b/测试主板.lua new file mode 100644 index 0000000..7ee9ba7 --- /dev/null +++ b/测试主板.lua @@ -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) \ No newline at end of file