From c05a93ddb0714a310a31574aaf030e677d9a07b6 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 06 一月 2023 17:43:31 +0800 Subject: [PATCH] 增加多网关绑定支持 --- Crabtree/SmartHome/HDL/Operation/Control.cs | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/Crabtree/SmartHome/HDL/Operation/Control.cs b/Crabtree/SmartHome/HDL/Operation/Control.cs index 8bbe6cf..6c54446 100644 --- a/Crabtree/SmartHome/HDL/Operation/Control.cs +++ b/Crabtree/SmartHome/HDL/Operation/Control.cs @@ -147,8 +147,10 @@ receiveFlag += string.Format ("{0}", usefulBytes [0]); break; case Command.ReadDeviceModulACK: - case Command.ReadGatewayACK: case Command.ReadSecurityStatusACK: + receiveFlag = string.Format ("{0},{1}", usefulBytes [0], usefulBytes [1]); + break; + case Command.ReadGatewayACK: receiveFlag = string.Format ("{0},{1}", usefulBytes [0], usefulBytes [1]); break; case Command.UpdataLightDimmingTheLargestLevelACK: @@ -167,6 +169,7 @@ case Command.SetGateWayAdminInfoACK: case Command.ReadGateWayLocalEncryptionACK: case Command.SetReadGateWayLocalEncryptionACK: + case Command.SetGateWayMqttURLAddressACK: //************************************ case Command.ReadGateWayModelInfoACK: case Command.ReadGatewayServerIPACK: @@ -220,6 +223,7 @@ case Command.SET_JOG_CLOSE_TIME_ACK: case Command.READ_JOG_CLOSE_TIME_ACK: case Command.ReadRemarkACK: + case Command.ApplyServerKeyACK: receiveFlag += ""; break; case Command.ControlMusicModel1ACK: @@ -523,6 +527,7 @@ case Command.SetGateWayAdminInfo: case Command.SetGateWayLocalEncryption: case Command.ReadGateWayLocalEncryption: + case Command.SetGateWayMqttURLAddress: //************************************ case Command.ReadGateWayModelInfo: case Command.ReadGatewayServerIP: @@ -577,6 +582,8 @@ case Command.SET_JOG_CLOSE_TIME_CMD: case Command.READ_JOG_CLOSE_TIME_CMD: case Command.ReadRemark: + case Command.ApplyServerKey: + case Command.RestartTheGateway: this.SendFlag += ""; break; case Command.ControlMusicModel2: -- Gitblit v1.8.0