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);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
procedure function |
protected | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothGattServer |
Description
Répartiteur de l'événement OnCharacteristicRead.
DoOnCharacteristicRead est appelée lorsque votre serveur GATT reçoit une demande d'un périphérique client pour obtenir les données d'une caractéristique.
Ce répartiteur d'événement reçoit les paramètres suivants :
Sender
est votre serveur GATT.ACharacteristic
est la caractéristique qui a été demandée.AGattStatus
est le statut de sortie de la demande de lecture.