Commit ce0ca931 authored by 方开's avatar 方开 🍔
Browse files

修改了温度测试的补点情况,补成0.1,以及在每条指令之间增加10秒的延时

parent f2d183a9
......@@ -40,7 +40,7 @@ def checkData(data: bytes, houseType: str, measureType: str, pointnum):
tempValue = int(tempData[i+1:i+4], 16) * 0.0625
realTemp.append(tempValue)
else:
realTemp.append(None)
realTemp.append(0.1)
logging.info(f"该通道温度实际数据为{realTemp}")
return realTemp
......@@ -145,7 +145,7 @@ def checkData(data: bytes, houseType: str, measureType: str, pointnum):
tempValue = int(tempData[i+1:i+4], 16) * 0.0625
realTemp.append(tempValue)
else:
realTemp.append(None)
realTemp.append(0.1)
logging.info(f"温度实际数据为{realTemp}")
return realTemp
else:
......@@ -243,6 +243,7 @@ def measureit(houseId, measureType="all", timeout=2):
logging.info(f"此通道温度数据为{data}")
dataList.append(data)
time.sleep(10)
logging.info(f"所有的温度数据为{dataList}")
return dataList
......
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