Bluetooth Framework
ContentsIndexHome
PreviousUpNext
TwclBluetoothRadio.Discover Method

Starts discovering for a remote Bluetooth enabled devices.

Syntax
Pascal
function Discover(const Timeout: Byte; const Kind: TwclBluetoothDiscoverKind): Integer;
Parameters 
Description 
const Timeout: Byte 
Specifies the maximum amount of time before the inquiry is halted (in seconds).  
const Kind: TwclBluetoothDiscoverKind 
Specifies the discovered Bluetooth device types.  

If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

If the discovering started the OnDiscoveringStarted event of the TwclBluetoothManager component fires.  

When the discovering for the remote Bluetooth enabled devices completed (with or without success) the OnDiscoveingCompleted event of the TwclBluetoothManager component fires.  

 

Copyright (c) 2006-2019. All rights reserved.