System.Bluetooth.TBluetoothLEAdvertiseData.DoAddServiceData
Delphi
function DoAddServiceData(const AServiceUUID: TBluetoothUUID; const AData: TBytes): Boolean; virtual; abstract;
C++
virtual bool __fastcall DoAddServiceData(const GUID &AServiceUUID, const System::DynamicArray<System::Byte> AData) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothLEAdvertiseData |
Description
- Note: This is an abstract method that platform-specific subclasses of TBluetoothLEAdvertiseData implement.
Attempts to add the specified pair of UUID and data of a GATT service to the advertised service data, and returns True
on success or False
otherwise.
The contents of the service data can be the complete or partial value of a characteristic or descriptor. See Getting Started with Bluetooth Low Energy, GATT Attribute Data in Advertising Packets.
Exceptions
Exception | Message | Scenarios |
---|---|---|
EBluetoothLEAdvertiseDataException | Need at least Android 5 (API 21) |
|