添加检测时赋码

心跳ack为0时才回复
This commit is contained in:
ranchuan
2023-09-26 17:23:57 +08:00
parent d8e41f133b
commit 56044eabf4
7 changed files with 76 additions and 20 deletions

View File

@@ -117,6 +117,7 @@ def scheme_taskids_to_byte(j:json):
t.append((j["PlanID"]>>8)&0xff)
t.append((j["PlanID"]>>16)&0xff)
t.append((j["PlanID"]>>24)&0xff)
print("calc planid:",t.hex(","))
for i in j["TaskArray"]:
t.append(i["TaskID"])
length=len(t)