JLChen
2020-04-03 be95e839f40eb3ddf64706b60cba6dfcf4fad5e5
Crabtree/SmartHome/HDL/Operation/Packet.cs
@@ -61,7 +61,7 @@
            EncryptionDetection ();
            //var mes2 = System.Text.Encoding.ASCII.GetString (Bytes, 0, Bytes.Length);
            //System.Console.WriteLine ($"============>GetBytes :{mes2}");
            //Utlis.WriteLine ($"============>GetBytes :{mes2}");
            //对于操作数据库的时间比较长的,可以创建另一个线程处理
            if (!"HDLMIRACLE".Equals (System.Text.Encoding.ASCII.GetString (Bytes, 4, 10))) {
@@ -81,7 +81,7 @@
         //不是要接收的指令就返回
         if (!((targetSubnetID == Global.LocalSubnetID && targetDeviceID == Global.LocalDeviceID) || (targetSubnetID == 0xff && targetDeviceID == 0xff))) {
                //System.Console.WriteLine ($"============>targetSubnetID return");
                //Utlis.WriteLine ($"============>targetSubnetID return");
                return;
         }
            byte [] usefulBytes = null;
@@ -98,7 +98,7 @@
                try {
                    ReceiveEvent (subnetID, deviceID, command, usefulBytes);
                } catch (Exception ex) {
                    Console.WriteLine (ex.Message);
                    Utlis.WriteLine (ex.Message);
                }
            }