TwclGattServer.DoRead(TwclGattServerClient,TwclGattLocalCharacteristic,TwclGattLocalCharacteristicReadRequest) Method

Fires the OnRead event.

Namespace: wclBluetooth
protected
 procedure DoRead(const Client: TwclGattServerClient;
 const Characteristic: TwclGattLocalCharacteristic;
 const Request: TwclGattLocalCharacteristicReadRequest); virtual;

Parameters

Client
Type: TwclGattServerClient

The TwclGattServerClient object that requested read.

Characteristic
Type: TwclGattLocalCharacteristic

The local GATT characteristic object that requested the write operation.

Request
Type: TwclGattLocalCharacteristicReadRequest

The GATT read request object.

This method is called when a remote GATT client requests read from the characteristic. An application must call the Respond method to send a data back to the device.