TwclGattClientConnection.HalReadDescriptorValue(TwclGattDescriptor,TwclGattOperationFlag,TwclGattProtectionLevel,TwclGattDescriptorValue) Method

Implements a hardware-dependent code for reading the value of the specified descriptor.

Namespace: wclBluetooth
protected
 function HalReadDescriptorValue(const Descriptor: TwclGattDescriptor;
 const Flag: TwclGattOperationFlag;
 const Protection: TwclGattProtectionLevel;
 var Value: TwclGattDescriptorValue): Integer; virtual; abstract;

Parameters

Descriptor
Type: TwclGattDescriptor

A TwclGattDescriptor obtained by previous call to the ReadDescriptors method.

Flag
Type: TwclGattOperationFlag

Operation behavior flag.

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.

A derived class must override this method.