old mode 100755
new mode 100644
| | |
| | | |
| | | public delegate void DelegateReceive (byte subnetID, byte deviceID, Command command, byte [] usefullBytes); |
| | | public static event DelegateReceive ReceiveEvent; |
| | | |
| | | public static Action lockedAction; |
| | | /// <summary> |
| | | /// 接收到的所有数据 |
| | | /// </summary> |
| | |
| | | public virtual void Manager () |
| | | { |
| | | //对于操作数据库的时间比较长的,可以创建另一个线程处理 |
| | | string verString = System.Text.Encoding.ASCII.GetString (Bytes); |
| | | if (verString.Contains ("HDLMIRACLELocked")) { |
| | | lockedAction?.Invoke (); |
| | | } |
| | | if (!"HDLMIRACLE".Equals (System.Text.Encoding.ASCII.GetString (Bytes, 4, 10))) { |
| | | return; |
| | | } |