TwclBluetoothManager.Open(TwclBluetoothApis,Boolean) Method

Opens the Bluetooth Manager and allocated required hardware resources.

Namespace: wclBluetooth
public
 function Open(const Apis: TwclBluetoothApis;
 const HandlePairing: Boolean = True): Integer; overload;

Parameters

Apis
Type: TwclBluetoothApis

The set of APIs the should be used by Bluetooth Framework.

HandlePairing
Type: Boolean

Allows to disable pairing handling by Bluetooth Framework. Set this to False to disable Bluetooth Framework pairing. Set to True (the default value) to enable Bluetooth Framework pairing.

Return Value

Type: Integer

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

An application must call this method before using any of the Bluetooth Framework features.

An application must call this method from its main thread only.