TwclGattClientConnection.HalReadServices(TwclGattOperationFlag,TwclGattServices) Method

Implements a hardware-dependent code for reading available services from a remote Bluetooth LE device.

Namespace: wclBluetooth
protected
 function HalReadServices(const Flag: TwclGattOperationFlag;
 out Services: TwclGattServices): Integer; virtual; abstract;

Parameters

Flag
Type: TwclGattOperationFlag

Operation behavior flag.

Services
Type: TwclGattServices

On output a list of available GATT services. An application is responsible to clean up a memory allocated for the dynamic array.

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.