예제 #1
0
        public RegackWrk(byte[] input)
        {
            this.regack = new Regack();

            regack.length      = input[0];
            regack.messageType = input[1];
            regack.topicId     = new byte[2];
            regack.messageId   = new byte[2];
            System.Buffer.BlockCopy(input, 2, regack.topicId, 0, 2);
            System.Buffer.BlockCopy(input, 4, regack.messageId, 0, 2);
            regack.ReturnCode = input[6];
        }
예제 #2
0
 public RegackWrk()
 {
     this.regack        = new Regack();
     regack.length      = Convert.ToByte("07", 16);
     regack.messageType = Convert.ToByte("0B", 16);
 }