System.Bluetooth.TBluetoothGattService.GetCharacteristic
Delphi
function GetCharacteristic(const AUUID: TBluetoothUUID): TBluetoothGattCharacteristic;
C++
TBluetoothGattCharacteristic* __fastcall GetCharacteristic(const GUID &AUUID);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothGattService |
Description
Requests the GATT Characteristic with the UUID passed as an argument from the GATT Service Profile.
- Warning: You must read the value of the Characteristics property before you call GetCharacteristic. Otherwise, GetCharacteristic returns nil.
GetCharacteristic expects a single argument, <TBluetoothUUID>, which is the characteristic identifier. GetCharacteristic returns an instance of the TBluetoothGattCharacteristic class for a particular Characteristic UUID.
A GATT characteristic, TBluetoothGattCharacteristic, is a basic data element used to construct a GATT service, BluetoothGattService. The characteristic contains a value as well as additional information and optional GATT descriptors, BluetoothGattDescriptor.