System.Bluetooth.TBluetoothLEAdvertiseData.AddServiceData
Delphi
procedure AddServiceData(const AServiceUUID: TBluetoothUUID; const AData: TBytes);
C++
void __fastcall AddServiceData(const GUID &AServiceUUID, const System::DynamicArray<System::Byte> AData);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothLEAdvertiseData |
Description
Adds the specified pair of UUID and data of a GATT service to the advertised service data.
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) |
|