diff --git a/nanoFramework.Device.Bluetooth/GenericAttributeProfile/GattCharacteristic.cs b/nanoFramework.Device.Bluetooth/GenericAttributeProfile/GattCharacteristic.cs index 3f48817..3c7488c 100644 --- a/nanoFramework.Device.Bluetooth/GenericAttributeProfile/GattCharacteristic.cs +++ b/nanoFramework.Device.Bluetooth/GenericAttributeProfile/GattCharacteristic.cs @@ -157,7 +157,7 @@ public GattReadClientCharacteristicConfigurationDescriptorResult ReadClientChara /// /// Returns an asynchronous operation that completes with a GattWriteResult object. /// - public GattWriteResult WriteClientCharacteristicConfigurationDescriptorWithResult(GattClientCharacteristicConfigurationDescriptorValue clientCharacteristicConfigurationDescriptorValue) + public GattWriteResult WriteClientCharacteristicConfigurationDescriptorWithResult(GattClientCharacteristicConfigurationDescriptorValue clientCharacteristicConfigurationDescriptorValue, GattWriteOption gattWriteOption = GattWriteOption.WriteWithoutResponse) { GattCommunicationStatus status = GattCommunicationStatus.AccessDenied; byte protocolError = 0; @@ -181,7 +181,7 @@ public GattWriteResult WriteClientCharacteristicConfigurationDescriptorWithResul GattWriteResult wr = _service.Device.WriteAttributeValueWithResult( _cccdDescriptorHandle, dw.DetachBuffer(), - GattWriteOption.WriteWithoutResponse); + gattWriteOption); if (wr.Status == 0) {