Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
BT: How to pair and add services
Mark81 last edited by
I'm playing with Bluetooth classes on Qt5.6.
My goal is to handle the pairing of a client, showing up the pin and decide which services connect: A2DP and/or HFP.
Right now I set the local adapter in discoverable mode:
then I connected all signals to related slots.
From my smartphone I discover the adapter and once clicked the deviceConnected signal is fired. Now I call:
The pairingFinished signal is fired and after few seconds also the deviceDisconnected one.
Because I request "paired" mode I was expecting also the pairingDisplayPinCode and pairingDisplayConfirmation signals.
Furthermore, how to add services? Is there an example?
Nankon last edited by
You use QBluetoothLocalDevce LocalDevice.is it available？what's the LocalDevice.isValid() return back?