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

connectToDevice() hangs when trying to connect to faulty Bluetooth device

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 5.15.1
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      The "connectToDevice()" method hangs when trying to connect to a disconnected/non-reachable device on Windows:

      void MyClass::connect()
      {
      	QBluetoothDeviceInfo info;
      	m_controller = new QLowEnergyController(info, nullptr);
      	m_controller->setRemoteAddressType(QLowEnergyController::PublicAddress);
      	m_controller->connectToDevice(); // this hangs
      }
      

      The following message is printed repeatedly in the debug output:

      qt.bluetooth.winrt: Characteristic operation failed
      

        Attachments

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

          Activity

            People

            Assignee:
            owolff Oliver Wolff
            Reporter:
            DanielSt Peter Staab
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes