Commit 8ec7de46 authored by joliu's avatar joliu

循环获取传感器数据

parent c1865fab
from controllMatrix import *
import time
print(updateDeviceTask('25', '192.168.12.1', 25))
while True:
if getDeviceTask()[0] == -1:
print(output)
continue
(id, data, dstIP, ctime) = getDeviceTask()[1]
print(data)
if data == 25:
print('success')
time.sleep(ctime)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment