TwclGattClientConnection.WriteDescriptorValue(TwclGattDescriptor,TwclGattProtectionLevel,TwclGattDescriptorValue) Method
The method writes the specified descriptor value to the Bluetooth device.
public function WriteDescriptorValue(const Descriptor: TwclGattDescriptor; const Protection: TwclGattProtectionLevel; const Value: TwclGattDescriptorValue): Integer;
Parameters
- Descriptor
- Type: TwclGattDescriptor
A TwclGattDescriptor obtained by previous call to the
ReadDescriptors
method. - Protection
- Type: TwclGattProtectionLevel
Describes the required protection level.
- Value
- Type: TwclGattDescriptorValue
A descriptor's value.
Return Value
Type: Integer
If the function succeed the return value is wclErrors.WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.