Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-73987

QBluetoothLocalDevice reports connected although connection fails when QLowEnergyController throws Unknown Error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.11.3
    • None
    • Linux/Other display system

    Description

      Hi,

       

      Use case:

      2 QLowEnergyController objects each connecting to a different BLE peripheral.

      When the member function connectToDevice is called too fast on both objects, one of the  connections will fail as QLowEnergyController traps an Unknow error and the state of this object is reported as connectingState.

      QBluetoothLocalDevice will catch 2 a connected signals despite one of the connection has failed.

      So as "temporary" workaround I no longer depend on the connected signal from the QBluetoothLocalDevice for counting the number of connected ble peripherals in my QBluetoothLocalDevice object. I will just rely on the connected signal of the QLowEnergyControl object.  AS my QBluetoothLocalDevice object contains the QLowEnergyController objects I can keep track of the actually correct number of connected BLE peripherals.

       

      Best regards,

      Frank

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ablasche Alex Blasche
            frv Frank Vieren
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes