procedure DoOnCharacteristicRead(const Sender: TObject; const ACharacteristic: TBluetoothGattCharacteristic; AGattStatus: TBluetoothGattStatus);
void __fastcall DoOnCharacteristicRead(System::TObject* const Sender, System::Bluetooth::TBluetoothGattCharacteristic* const ACharacteristic, System::Bluetooth::TBluetoothGattStatus AGattStatus);
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.