System.Bluetooth.TBluetoothGattService.GetCharacteristic

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function GetCharacteristic(const AUUID: TBluetoothUUID): TBluetoothGattCharacteristic;

C++

TBluetoothGattCharacteristic* __fastcall GetCharacteristic(const GUID &AUUID);

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.Bluetooth.pas
System.Bluetooth.hpp
System.Bluetooth TBluetoothGattService


Description

Demande la caractéristique GATT avec l'UUID transmis sous la forme d'un argument à partir du profil de services GATT.

Avertissement : Vous devez lire la valeur de la propriété Characteristics avant d'appeler GetCharacteristic. Sinon, GetCharacteristic renvoie nil.

GetCharacteristic attend un seul argument, <TBluetoothUUID>, qui est l'identificateur de la caractéristique. GetCharacteristic renvoie une instance de la classe TBluetoothGattCharacteristic pour un UUID de caractéristique particulier.

Une caractéristique GATT TBluetoothGattCharacteristic est un élément de données de base utilisé pour construire un service GATT, BluetoothGattService. La caractéristique contient une valeur ainsi que des informations supplémentaires et des descripteurs GATT facultatifs, BluetoothGattDescriptor.

Voir aussi