System.Bluetooth.Components.TBluetoothLE.GetCharacteristic
Delphi
function GetCharacteristic(const AService: TBluetoothGattService; const AUUID: TBluetoothUUID)
C++
System::Bluetooth::TBluetoothGattCharacteristic* __fastcall GetCharacteristic(System::Bluetooth::TBluetoothGattService* const AService, const GUID &AUUID);
Propriétés
| Type | Visibilité | Source | Unité | Parent |
|---|---|---|---|---|
| function | public | System.Bluetooth.Components.pas System.Bluetooth.Components.hpp |
System.Bluetooth.Components | TBluetoothLE |
Description
Renvoie une caractéristique GATT avec l'UUID spécifié du service GATT spécifié.
- Avertissement : Vous devez lire la valeur de la propriété
AService.Characteristics avant d'appeler GetCharacteristic. Sinon, GetCharacteristic renvoie nil.
GetCharacteristic attend les arguments suivants :
AServiceest le service qui fournit la caractéristique.AUUIDest l'identificateur de la caractéristique.