public ManufacturerNameStringCharacteristicBuilder(IBluetoothManager bluetoothManager) { _Builder = bluetoothManager.NewGattCharacteristicBuilder(); _Builder.SetUuid(CHARACTERISTIC_MANUFACTURER_NAME) .SetPermissions(PERMISSIONS) .SetProperties(PROPERTIES); }
public KeepNotifyingCharacteristicWrapper(IBluetoothManager bluetoothManager) { ClientCharacteristicConfigurationDescriptorWrapper = new ClientCharacteristicConfigurationDescriptorWrapper(bluetoothManager); IGattCharacteristicBuilder builder = bluetoothManager.NewGattCharacteristicBuilder(); builder.SetUuid(UUID).SetPermissions(PERMISSIONS).SetProperties(PROPERTIES); builder.AddDescriptors(ClientCharacteristicConfigurationDescriptorWrapper.GattServerDescriptor); GattServerCharacteristic = builder.Build(); GattServerCharacteristic.OnRead += _OnRead; }