System.Bluetooth.TBluetoothGattServer.DoOnCharacteristicRead
Delphi
procedure DoOnCharacteristicRead(const Sender: TObject; const ACharacteristic: TBluetoothGattCharacteristic; var AGattStatus: TBluetoothGattStatus);
C++
void __fastcall DoOnCharacteristicRead(System::TObject* const Sender, TBluetoothGattCharacteristic* const ACharacteristic, TBluetoothGattStatus &AGattStatus);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
protected | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothGattServer |
Description
Dispatcher of the OnCharacteristicRead event.
DoOnCharacteristicRead is called when your GATT server receives a request from a client device of the data of a characteristic.
This event dispatcher receives the following parameters:
Senderis your GATT server.ACharacteristicis the characteristic that has been requested.AGattStatusis the exit status of the read request.