Bluetooth Framework C++ Edition

◆ Open() [2/2]

int Open ( const wclBluetoothApis  Apis,
const bool  HandlePairing = true 
)

Opens the Bluetooth Manager and allocated required hardware resources.

Parameters
ApisThe set of APIs the should be used by Bluetooth Framework.
HandlePairingAllows 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.
Returns
If the function succeed the return value is 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.

See also
wclBluetoothApis