System.Bluetooth.TBluetoothLEAdapter.DoStartLeDiscovery

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DoStartLeDiscovery(Timeout: Cardinal; const AFilterUUIDList: TBluetoothUUIDsList = nil): Boolean; virtual; deprecated 'Use DoStartDiscovery';

C++

virtual bool __fastcall DoStartLeDiscovery _DEPRECATED_ATTRIBUTE1("Use DoStartDiscovery") (unsigned Timeout, TBluetoothUUIDsList* const AFilterUUIDList = (TBluetoothUUIDsList*)(0x0));

Properties

Type Visibility Source Unit Parent
function protected
System.Bluetooth.pas
System.Bluetooth.hpp
System.Bluetooth TBluetoothLEAdapter

Description

Warning: DoStartLeDiscovery is deprecated. Please use DoStartDiscovery.

Note: This is an abstract method that platform-specific subclasses of TBluetoothLEAdapter implement.

Starts a discovery operation to find remote devices using Bluetooth Low Energy.

StartDiscovery calls DoStartLeDiscovery.

DoStartLeDiscovery accepts the following parameters:

  • Timeout: How much time you want to spend discovering remote devices using Bluetooth Low Energy.
  • AFilterUUIDList (Optional): A list of one or more Bluetooth UUIDs.

When the discovery operation finishes, your adapter calls DoDiscoveryEnd providing a list of discovered remote devices.

DoStartLeDiscovery returns True if the discovery starts successfully, or False if something prevents the discovery from starting.

Platform Support

Platform Notes

32-bit Windows
64-bit Windows

OS X

  • OnDiscoveryEnd always occurs some time after the specified Timeout, never before.
  • Always returns True.

iOS

  • OnDiscoveryEnd always occurs some time after the specified Timeout, never before.
  • Always returns True.

Android

  • OnDiscoveryEnd always occurs after the specified Timeout, never before.

See Also