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);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Bluetooth.Components.pas System.Bluetooth.Components.hpp |
System.Bluetooth.Components | TBluetoothLE |
Description
Returns a GATT characteristic with the specified UUID from the specified GATT service.
- Warning: You must read the value of the
AService
.Characteristics property before you call GetCharacteristic. Otherwise, GetCharacteristic returns nil.
GetCharacteristic expects the following arguments:
AService
is the service that provides the characteristic.AUUID
is the characteristic identifier.