TwclGattLocalCharacteristicReadRequest.HalRespond(Pointer,Cardinal) Method

Sends the specified data to the connected client in respond to a read request.

Namespace: wclBluetooth
protected
 function HalRespond(const Data: Pointer;
 const Size: Cardinal): Integer; virtual; abstract;

Parameters

Data
Type: Pointer

The pointer to the data.

Size
Type: Cardinal

The data length.

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 hardware dependent code that sends a data to a remote connected GATT client.