TwclGattClient.ReadDescriptorValue(TwclGattDescriptor,TwclGattOperationFlag,TwclGattDescriptorValue,TwclGattProtectionLevel) Method

The method reads the value of the specified descriptor.

Namespace: wclBluetooth
public
 function ReadDescriptorValue(const Descriptor: TwclGattDescriptor;
 const Flag: TwclGattOperationFlag; out Value: TwclGattDescriptorValue;
 const Protection: TwclGattProtectionLevel = plNone): Integer;

Parameters

Descriptor
Type: TwclGattDescriptor

A TwclGattDescriptor obtained by previous call to the ReadDescriptors method.

Flag
Type: TwclGattOperationFlag

Operation behavior flag.

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.