| | |
| | | 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: |
| | |
| | | case Command.SetGateWayAdminInfoACK: |
| | | case Command.ReadGateWayLocalEncryptionACK: |
| | | case Command.SetReadGateWayLocalEncryptionACK: |
| | | case Command.SetGateWayMqttURLAddressACK: |
| | | //************************************ |
| | | case Command.ReadGateWayModelInfoACK: |
| | | case Command.ReadGatewayServerIPACK: |
| | |
| | | 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: |
| | |
| | | |
| | | //这里是重发两次 |
| | | while (Packet.HaveSendCount < 3 && BusSocket.IsRunning) { |
| | | if (Packet.FlagDateTime.AddMilliseconds (1000).Ticks <= System.DateTime.Now.Ticks) { |
| | | if (Packet.FlagDateTime.AddMilliseconds (300).Ticks <= System.DateTime.Now.Ticks) { |
| | | Utlis.WriteLine ("重发数据:" + SendFlag); |
| | | BusSocket.AsyncBeginSend (Packet); |
| | | } |
| | |
| | | case Command.SetGateWayAdminInfo: |
| | | case Command.SetGateWayLocalEncryption: |
| | | case Command.ReadGateWayLocalEncryption: |
| | | case Command.SetGateWayMqttURLAddress: |
| | | //************************************ |
| | | case Command.ReadGateWayModelInfo: |
| | | case Command.ReadGatewayServerIP: |
| | |
| | | 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: |