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

Bluetooth Low Energy search should have no timeout

    XMLWordPrintable

Details

    • Android

    Description

      When running a BLE device search using QBluetoothDeviceDiscoveryAgent, 10 seconds after we call start(), search is stopped automatically and finish() is emited.

      This is due to a timeout setup by src\bluetooth\qbluetoothdevicediscoveryagent_android.cpp, line 273.

      The thing is that the device we are trying to find may not be found within 10sec, so only the end user/developer should decide when to stop the discovery agent search. Timeout feature is nice, but should be optional (why not an optional parameter to the start() slot). I struggled hours to understand what was going on and why my device was not found....it was just because Qt was not searching it anymore...

      See this related topic:
      http://stackoverflow.com/questions/36858110/what-makes-qbluetoothdevicediscoveryagentfinished-be-called

      Attachments

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

        Activity

          People

            ablasche Alex Blasche
            jpo38 Jean Porcherot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews