[Interest] [QtBluetooth] Pairing two devices

Claudiu Olteanu olteanu.claudiu at ymail.com
Sun May 31 20:49:49 CEST 2015


Hi there! 
I have some problems when I try to pair two Bluetooth devices using the QTBluetooth API (QBluetoothLocaldevice class). The remote device requires a specific PIN code and when I call the requestPairing method the result is "org.bluez.Error.AuthenticationFailed". (error = 1, pairing status = 0)
Is there a way to specify the PIN code? I tried to use pairingDisplayConfirmation and pairingDisplayPinCode signals, but they are never triggered after the call of requestPairing method (with QBluetoothLocalDevice::Paired enum for the second parameter).I read that for the last method the pin is automatically generated so I don't think that they can be used in my scenario . Therefore what happens when you need to insert a specific pin code?
I am not sure if it helps but here are the platform and the versions of the packages used:- OS: openSUSE 13.2 (Harlequin) (x86_64) - KDE - Qt 5.4.1 - BlueZ 5.23-1.1
Cheers,Claudiu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150531/b02e614d/attachment.html>


More information about the Interest mailing list