System.Bluetooth.Components.TBluetoothLE.DoOnCharacteristicRead
Delphi
procedure DoOnCharacteristicRead(const Sender: TObject; const ACharacteristic: TBluetoothGattCharacteristic;  AGattStatus: TBluetoothGattStatus);
C++
void __fastcall DoOnCharacteristicRead(System::TObject* const Sender, System::Bluetooth::TBluetoothGattCharacteristic* const ACharacteristic, System::Bluetooth::TBluetoothGattStatus AGattStatus);
Properties
| Type | Visibility | Source | Unit | Parent | 
|---|---|---|---|---|
| procedure function | protected | System.Bluetooth.Components.pas System.Bluetooth.Components.hpp | System.Bluetooth.Components | TBluetoothLE | 
Description
Dispatcher of the OnCharacteristicRead event.
DoOnCharacteristicRead is called when the data of a characteristic of a service from a remote device is read from the remote device.
This read operation may be triggered by any of the following:
- You actively requested to read the data of a characteristic using ReadCharacteristic.
- You enabled notifications for changes on a characteristic using SubscribeToCharacteristic, the characteristic then changed on the remote device and the data of the characteristic was automatically updated on your end.
This event dispatcher receives the following parameters:
- Senderis the remote device that provides the characteristic.
- ACharacteristicis the characteristic that has been read.
- AGattStatusis the exit status of the read operation.