TwclGattServerConnection.HalCreateService(TwclGattUuid,TwclGattLocalService) Method

Creates a driver specific local GATT service object.

Namespace: wclBluetooth
protected
 function HalCreateService(const Uuid: TwclGattUuid;
 out Service: TwclGattLocalService): Integer; virtual; abstract;

Parameters

Uuid
Type: TwclGattUuid

The service's UUID.

Service
Type: TwclGattLocalService

If the function completed with success this parameter includes just create local GATT service object.

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 to provide driver specific code.