System.Bluetooth.TBluetoothGattService.GetCharacteristic
Delphi
function GetCharacteristic(const AUUID: TBluetoothUUID): TBluetoothGattCharacteristic;
C++
TBluetoothGattCharacteristic* __fastcall GetCharacteristic(const GUID &AUUID);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothGattService |
説明
GATT サービス プロファイルから引数として渡された UUID の GATT キャラクタリスティックを要求するためのものです。
- 警告: Characteristics プロパティの値は、GetCharacteristic を呼び出す前に読み込まなければなりません。 そうでなければ、GetCharacteristic は nil を返します。
GetCharacteristic に必要な引数は、キャラクタリスティック識別子である <TBluetoothUUID> だけです。GetCharacteristic は、そのキャラクタリスティック UUID の TBluetoothGattCharacteristic クラスのインスタンスを返します。
GATT 特性である TBluetoothGattCharacteristic は、GATT サービス BluetoothGattService を構築する際に使用する、基本データ要素です。特性は値だけでなく、追加情報や、任意の GATT ディスクリプタ BluetoothGattDescriptor を保有しています。