System.Bluetooth.Components.TBluetoothLE.DiscoverServices
Delphi
function DiscoverServices(const ADevice: TBluetoothLEDevice): Boolean;
C++
bool __fastcall DiscoverServices(System::Bluetooth::TBluetoothLEDevice* const ADevice);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Bluetooth.Components.pas System.Bluetooth.Components.hpp |
System.Bluetooth.Components | TBluetoothLE |
Description
Discovers services offered by the specified remote Bluetooth Low Energy device as well as their characteristics and descriptors.
Once the service discovery is completed, the OnEndDiscoverServices event is triggered. If the discovery was successful, the remote services can be retrieved using the Services property of the specified device.
DiscoverServices returns True
if the discovery starts successfully, or False
if something prevents the discovery from starting.
Platform Support
Platform | Bluetooth Low Energy | |
---|---|---|
Client | Server | |
Windows |
8+ |
|
OS X |
10.7+ |
10.9+ |
iOS |
5+ |
6+ |
Android |
4.3+ |