TwclGattClientConnection.HalSubscribe(TwclGattCharacteristic,THandle) Method

Implements a hardware-dependent code to subscribes for the characteristic changes notifications.

Namespace: wclBluetooth
protected
 function HalSubscribe(const Characteristic: TwclGattCharacteristic;
 out Hdl: THandle): Integer; virtual; abstract;

Parameters

Characteristic
Type: TwclGattCharacteristic

A characteristic object in that changes an application is interested.

Hdl
Type: THandle

On output the subscription handle.

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.