TwclGattClient.WriteDescriptorValue(TwclGattDescriptor,TwclGattDescriptorValue,TwclGattProtectionLevel) Method
The method writes the specified descriptor value to the Bluetooth device.
public function WriteDescriptorValue(const Descriptor: TwclGattDescriptor; const Value: TwclGattDescriptorValue; const Protection: TwclGattProtectionLevel = plNone): Integer;
Parameters
- Descriptor
- Type: TwclGattDescriptor
A TwclGattDescriptor obtained by previous call to the
ReadDescriptors
method. - Value
- Type: TwclGattDescriptorValue
A descriptor's value.
- Protection
- Type: TwclGattProtectionLevel
Describes the required protection level.
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.