System.Bluetooth.TBluetoothGattService.GetCharacteristic

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

function GetCharacteristic(const AUUID: TBluetoothUUID): TBluetoothGattCharacteristic;

C++

TBluetoothGattCharacteristic* __fastcall GetCharacteristic(const GUID &AUUID);

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function public
System.Bluetooth.pas
System.Bluetooth.hpp
System.Bluetooth TBluetoothGattService


Beschreibung

Fordert das GATT-Merkmal mit der als Argument übergebenen UUID vom GATT-Dienstprofil an.

Warnung: Sie müssen den Wert der Eigenschaft Characteristics lesen, bevor Sie GetCharacteristic aufrufen. Ansonsten gibt GetCharacteristic nil zurück.

GetCharacteristic erwartet ein einzelnes Argument, <TBluetoothUUID>, das der Merkmalbezeichner ist. GetCharacteristic gibt eine Instanz der Klasse TBluetoothGattCharacteristic für eine bestimmte Merkmal-UUID zurück.

Ein GATT-Merkmal, TBluetoothGattCharacteristic, ist ein Basisdatenelement, mit dem ein GATT-Dienst, BluetoothGattService, aufgebaut werden kann. Das Merkmal enthält einen Wert sowie weitere Informationen und optionale GATT-Deskriptoren, BluetoothGattDescriptor.

Siehe auch