Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: wuchihchung on May 30, 2015, 10:03:18 AM

Title: [C++][CwclClient] The Bluetooth Notifications in settings must be checked
Post by: wuchihchung on May 30, 2015, 10:03:18 AM
Hi Mike,
   I'm used to call CwclClient::Connect() to connect a BT device even though it's not paired in my Windows desktop.
   And for the 1st time, system will pop up a dialog to inform users (see screenshot, let users know there's a new device going to be added).
   I found dialog will NOT pop up, if following item not checked :
         
  Bluetooth > Settings > Notifications > Alert me when a new Bluetooth device wants to connect

 
 So here I'd like to ask :

1. Any API or registry key I can enable this via code so that end-user doesn't need to check it manually
2. For the 1st I try to connect an unpair BT device,
         2.1 - always call CwclClient::Connect(), let WCL pairs for me
         2.2 - call CwclBluetoothDevice()::Pair() first, and then call CwclClient::Connect()

    I don't know which one above is better, what's your suggestion ?

Thanks a lot.


[attachment deleted by admin]
Title: Re: [C++][CwclClient] The Bluetooth Notifications in settings must be checked
Post by: Mike Petrichenko on May 30, 2015, 10:34:27 AM
Hi,

WCL disables this dialog (not sure which version but 6.14 does it 100%). If you do not want to call Pair before connect use wclAuthenticator instead.