System.Bluetooth.Components.TBluetoothLE.OnCharacteristicRead
Delphi
property OnCharacteristicRead: TGattCharacteristicEvent read FOnCharacteristicRead write FOnCharacteristicRead;
C++
__property System::Bluetooth::TGattCharacteristicEvent OnCharacteristicRead = {read=FOnCharacteristicRead, write=FOnCharacteristicRead};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | System.Bluetooth.Components.pas System.Bluetooth.Components.hpp |
System.Bluetooth.Components | TBluetoothLE |
Description
Occurs 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.
The handler of OnCharacteristicRead receives the following parameters:
Sender
is the remote device that provides the characteristic.ACharacteristic
is the characteristic that has been read.AGattStatus
is the exit status of the read operation.