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

Windows RT Bluetooth Low Energy GetIncludedServicesAsync should be allowed to fail

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.2.4
    • 5.14
    • None
    • Windows

    Description

      I'm trying to use Bluetooth Low Energy on Windows. However, when I call QLowEnergyService::discoverDetails() it triggers an error signal with QLowEnergyService::UnknownError.

       

      I was able to reproduce the problem in a C# program and narrowed it down to the fact that the Windows API GattDeviceService.GetIncludedServicesAsync() returns a result with GattDeviceServicesResult.AccessDenied.

       

      There is a comment in the Qt code that says

          // Some devices return ERROR_ACCESS_DISABLED_BY_POLICY

      so it seems like this is expected and should be ignored rather than raising an error.

       

      It looks like this bug might have been introduced by commit 1fdbe1c6a9b818b5928537f176fcf026b31e17a2, change id Ib949c16d80a09c47a0bb332e026459438c901031.

      Attachments

        Issue Links

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

          Activity

            People

              owolff Oliver Wolff
              dlech David Lechner
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes