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:
Sender
is your GATT server.ACharacteristic
is the characteristic that has been requested.AGattStatus
is the exit status of the read request.