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

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

    XMLWordPrintable

Details

    • Windows
    • 21
    • 007dcbf074a9e4d72e2a29a4a28ac5e502830e20 (qt/qtconnectivity/dev) e05deb028aa600781d8ef695a734ad6898948ef7 (qt/qtconnectivity/6.2) 359721c3b4c099b3bd00ae72b51935d38a0ec640 (qt/tqtc-qtconnectivity/5.15)
    • Team 1 Foundation_Sprint 42

    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

        Issue Links

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

          Activity

            People

              ivan.solovev Ivan Solovev
              DanielSt Peter Staab
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes