Beispiel #1
0
        public ClientCharacteristicConfigurationDescriptorWrapper(IBluetoothManager bluetoothManager)
        {
            _ClientConfigurations = new Dictionary <IBluetoothDevice, Configuration>();
            var builder = bluetoothManager.NewGattDescriptorBuilder();

            builder.SetUuid(CLIENT_CHARACTERISTIC_CONFIGURATION_UUID).SetPermissions(PERMISSIONS);
            GattServerDescriptor          = builder.Build();
            GattServerDescriptor.OnRead  += _OnRead;
            GattServerDescriptor.OnWrite += _OnWrite;
        }