Пример #1
0
        public void Test2()
        {
            var          bytes        = "00 00 B1 8E".ToHexBytes();
            JT809_0x9003 jT809_0X9003 = JT809Serializer.Deserialize <JT809_0x9003>(bytes);

            Assert.Equal((uint)45454, jT809_0X9003.VerifyCode);
        }
Пример #2
0
        public void Test1()
        {
            JT809_0x9003 jT809_0X9003 = new JT809_0x9003();

            jT809_0X9003.VerifyCode = 45454;
            var hex = JT809Serializer.Serialize(jT809_0X9003).ToHexString();

            Assert.Equal("0000B18E", hex);
        }