System.Bluetooth.TBluetoothLEDevice.GetService

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetService(const AServiceID: TBluetoothUUID): TBluetoothGattService;

C++

TBluetoothGattService* __fastcall GetService(const GUID &AServiceID);

Properties

Type Visibility Source Unit Parent
function public
System.Bluetooth.pas
System.Bluetooth.hpp
System.Bluetooth TBluetoothLEDevice

Description

Requests the service with the UUID passed as an argument from the Bluetooth Low Energy device.

You have to DiscoverServices before using this function.

GetService expects a single argument, AServiceID, which is the service identifier. GetService returns an instance of the TBluetoothGattService class for a particular Service UUID.

See Also