Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Bluetooth experts... deviceConnected & deviceDisconnected work, pairFinished does not



  • Below is the log out from my pair session with a phone.
    For some reason, I see device connect and disconnect, but
    not pair messages. :(

    Am I missing something?

    In my code, I do setup the signal / slots connecst:
    connect(m_pBluetoothDevice, &QBluetoothLocalDevice::pairingFinished, this, &CBluetoothServer::pairingDone, Qt::QueuedConnection);
    connect(m_pBluetoothDevice, &QBluetoothLocalDevice::deviceConnected, this, &CBluetoothServer::deviceConnected, Qt::QueuedConnection);
    connect(m_pBluetoothDevice, &QBluetoothLocalDevice::deviceDisconnected, this, &CBluetoothServer::deviceDisconnected, Qt::QueuedConnection);
    connect(m_pBluetoothDevice, &QBluetoothLocalDevice::error, this, &CBluetoothServer::pairingError);

    Console out. (my messages start with BT or BTS)
    BT Request Pair to : "SAMSUNG-SM-G930V"
    BT Address : "94:76:B7:60:27:F2"
    qt.bluetooth.bluez: Initiating direct pair to "94:76:B7:60:27:F2"
    qt.bluetooth.bluez: Sending pairing request to "94:76:B7:60:27:F2"
    qt.bluetooth.bluez: BluetoothManagement: Ignored event: 1a
    qt.bluetooth.bluez: BluetoothManagement: Ignored event: 13
    qt.bluetooth.bluez: BluetoothManagement: Ignored event: b
    BTS DeviceConnected: "94:76:B7:60:27:F2"
    (Phone form shows to accept pair)
    qt.bluetooth.bluez: BluetoothManagement: Ignored event: 9
    qt.bluetooth.bluez: BluetoothManagement: Ignored event: c
    ( I clicked accept on the phone )
    BTS DeviceDisconnected: "94:76:B7:60:27:F2"
    qt.bluetooth.bluez: BluetoothManagement: Ignored event: 13


Log in to reply