Example #1
0
        private Dictionary <UsbBluetoothEndpointType, byte> GetBluetoothEndpointIds()
        {
            var endpointIds = new Dictionary <UsbBluetoothEndpointType, byte>
            {
                { UsbBluetoothEndpointType.Commands, 0x00 },
                { UsbBluetoothEndpointType.Events, 0x81 },
                { UsbBluetoothEndpointType.AclDataOut, 0x02 },
                { UsbBluetoothEndpointType.AclDataIn, 0x82 }
            };

            foreach (var info in usbDevice.EnumerateBluetoothEndpointInfo())
            {
                endpointIds[info.Type] = info.Id;
            }
            return(endpointIds);
        }