HDL_ON/DriverLayer/Packet.cs
@@ -62,6 +62,8 @@ } else { try { //对于操作数据库的时间比较长的,可以创建另一个线程处理 if (!"HDLMIRACLE".Equals(System.Text.Encoding.ASCII.GetString(Bytes, 4, 10))) { @@ -95,8 +97,7 @@ //有用的附加数据 usefulBytes = new byte[this.Bytes[16] - 11]; Array.Copy(Bytes, 25, usefulBytes, 0, usefulBytes.Length); } if (ReceiveEvent != null) { @@ -117,7 +118,10 @@ } //处理是否要重发数据 Control.ManagerReceive(subnetID, deviceID, command, targetSubnetID, targetDeviceID, usefulBytes, RemoteEndPoint); } catch (Exception ex) { MainPage.Log($"packet {ex.Message} "); } } }