public int HCI_Disconnect(BthHandle Handle)
        {
            var Buffer = new byte[6];

            Buffer[3] = Handle.Bytes[0];
            Buffer[4] = (byte)(Handle.Bytes[1] ^ 0x20);
            Buffer[5] = 0x13;

            return HCI_Command(HCI.Command.HCI_Disconnect, Buffer);
        }
        private int HCI_Set_Connection_Encryption(BthHandle Handle)
        {
            var Buffer = new byte[6];

            Buffer[3] = Handle.Bytes[0];
            Buffer[4] = (byte)(Handle.Bytes[1] ^ 0x20);
            Buffer[5] = 0x01;

            return HCI_Command(HCI.Command.HCI_Set_Connection_Encryption, Buffer);
        }
Exemple #3
0
 public L2CapDataPacket(byte[] buffer)
 {
     RawBytes = buffer;
     Handle = new BthHandle(RawBytes[0], RawBytes[1]);
 }