Example #1
0
 /// <summary>
 /// �������ӱ�ǩ
 /// </summary>
 /// <param name="address">���ӱ�ǩ��ַ</param>
 /// <param name="cmdType">��������</param>
 private void ExecuteCmd(int address, CmdType cmdType ,object data)
 {
     CmdData cmddata = new CmdData();
     cmddata.address = address;
     cmddata.cmdType = cmdType;
     cmddata.data = data;
     this.Send(cmddata);
 }
Example #2
0
        public void ResponseKeyAck()
        {
            byte[] btData = new byte[2];
            //btData[0] = (byte)(address % 256);

            CmdData cmddata = new CmdData();
            cmddata.address = 0;
            cmddata.cmdType = CmdType.KeyRaisedAck;
            cmddata.data = btData;

            this.Com.Write(new SendDataPacket() { data = cmddata, btdata = this.Com.Encoder.Encode(cmddata) });
        }