예제 #1
0
        public byte[] GetCommandBytes()
        {
            var checkSum = DataHelper.GetHexCheckSum(DataHelper.HexStrTobyte(_hexString), false);

            return(DataHelper.HexStrTobyte(_hexString + checkSum));
        }
예제 #2
0
        public bool Verify()
        {
            var temp = DataHelper.GetHexCheckSum(bytes);

            return(temp == CheckNumHex);
        }