Bluetooth Framework C++ Edition

◆ Discover()

int Discover ( const unsigned char  Timeout,
const wclBluetoothDiscoverKind  Kind,
const bool  IncludePaired = false 
)

Starts discovering for a remote Bluetooth enabled devices.

Parameters
TimeoutSpecifies the maximum amount of time before the inquiry is halted (in seconds).
KindSpecifies the discovered Bluetooth device types.
IncludePairedSet this parameter to true if you need to get paired devices reported as just found even such devices are not available. If this parameter is false only available devices will be returned.
Returns
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 CwclBluetoothManager component fires.

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

See also
wclBluetoothDiscoverKind