System.Bluetooth.TBluetoothLEDevice.DiscoverServices

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DiscoverServices: Boolean;

C++

bool __fastcall DiscoverServices();

Properties

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

Description

Discovers services offered by a remote Bluetooth Low Energy device as well as their characteristics and descriptors.

Once service discovery is completed, the OnServicesDiscovered event is triggered. If the discovery was successful, the remote services can be retrieved using the Services property.

DiscoverServices returns True if the discovery starts successfully, or False if something prevents the discovery from starting. DiscoverServices calls DoDiscoverServices.

Platform Support

Platform Bluetooth Low Energy
Client Server

Windows

8+

OS X

10.7+

10.9+

iOS

5+

6+

Android

4.3+

See Also