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

Windows RT Bluetooth Low Energy GetIncludedServicesAsync should be allowed to fail

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.14
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      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

              Assignee:
              owolff Oliver Wolff
              Reporter:
              dlech David Lechner
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes