I am building an application in which I would like to pair a bluetooth low energy device and connect to it. What should be the typical workflow for this
- if the device bluetooth address is known
- if the device bluetooth address is not known
Is QBluetoothDeviceDiscoveryAgent the class to do all this? If so, do you need to pair in the OS level (for instance using bluetooth icon in task bar) first or can it be done programmatically?
Thanks!
I believe that ble devices cannot be paired via settings in OS, because they can discover only bt classic devices. In ble devices bonding is not necessary, but sometimes is done for security reasons.
QBluetoothDeviceDiscoveryAgent class is only for discovering devices. For connecting to device is used QLowEnergyController class. For more info I would refer to Qt quides as I have only experience with Qt only with bluetooth classic devices