Commit 5eeb01f7 authored by 方开's avatar 方开 🍔
Browse files

发送重置指令的问题

parent cd859853
...@@ -277,7 +277,7 @@ def measureit(houseId, measureType="all", timeout=2): ...@@ -277,7 +277,7 @@ def measureit(houseId, measureType="all", timeout=2):
socket.AF_INET, socket.SOCK_STREAM) socket.AF_INET, socket.SOCK_STREAM)
logging.info(f"正在向虫害分机发送复位指令{resetCmd}") logging.info(f"正在向虫害分机发送复位指令{resetCmd}")
tcpSocket.connect(addr) tcpSocket.connect(addr)
tcpSocket.send(resetCmd.encode()) tcpSocket.send(a2b_hex(resetCmd))
except Exception as e: except Exception as e:
logging.info(f"发送复位指令异常:{e}") logging.info(f"发送复位指令异常:{e}")
......
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