| | |
| | | //有用的附加数据 |
| | | usefulBytes = new byte[this.Bytes[16] - 11]; |
| | | Array.Copy(Bytes, 25, usefulBytes, 0, usefulBytes.Length); |
| | | } |
| | | |
| | | if (ReceiveEvent != null) |
| | | { |
| | | string revIp = $"{Bytes[0]}.{Bytes[1]}.{Bytes[2]}.{Bytes[3]}"; |
| | | if (revIp == "172.16.2.237") |
| | | |
| | | |
| | | if (ReceiveEvent != null) |
| | | { |
| | | string revIp = $"{Bytes[0]}.{Bytes[1]}.{Bytes[2]}.{Bytes[3]}"; |
| | | if (revIp == "172.16.2.237") |
| | | { |
| | | |
| | | } |
| | | ReceiveEvent(subnetID, deviceID, command, usefulBytes, revIp); |
| | | } |
| | | ReceiveEvent(subnetID, deviceID, command, usefulBytes, revIp); |
| | | } |
| | | |
| | | //if (command == Command.SuperGatewayAgentACK) { |
| | | // SuperGateWay.SendAndReceiveDatas.Recevice (subnetID, deviceID, usefulBytes); |
| | | //} |
| | | if (ReceviceAllDadaAction != null) |
| | | { |
| | | ReceviceAllDadaAction(subnetID, deviceID, deviceType, command, targetSubnetID, targetDeviceID, usefulBytes, (System.Net.IPEndPoint)RemoteEndPoint); |
| | | } |
| | | //处理是否要重发数据 |
| | | Control.ManagerReceive(subnetID, deviceID, command, targetSubnetID, targetDeviceID, usefulBytes, RemoteEndPoint); |
| | | //if (command == Command.SuperGatewayAgentACK) { |
| | | // SuperGateWay.SendAndReceiveDatas.Recevice (subnetID, deviceID, usefulBytes); |
| | | //} |
| | | if (ReceviceAllDadaAction != null) |
| | | { |
| | | ReceviceAllDadaAction(subnetID, deviceID, deviceType, command, targetSubnetID, targetDeviceID, usefulBytes, (System.Net.IPEndPoint)RemoteEndPoint); |
| | | } |
| | | //处理是否要重发数据 |
| | | Control.ManagerReceive(subnetID, deviceID, command, targetSubnetID, targetDeviceID, usefulBytes, RemoteEndPoint); |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |