Example #1
0
        public void receiveData(byte[] buffer, int count)
        {
            // if (!Utils.CheckCode(buffer)) return;

            for (int i = 0; i <= count; i++)
            {
                System.Console.Out.WriteLine("0x{0:X}", buffer[i]);
            }
            DeviceStatu deviceStatu = TelProtocol.parserStatu(buffer);

            if (null != upStatu)
            {
                upStatu(deviceStatu);
            }
        }
Example #2
0
        public static DeviceStatu parserStatu(byte[] buff)
        {
            DeviceStatu statu = new DeviceStatu(buff);

            return(statu);
        }