Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.14
-
None
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
- duplicates
-
QTBUG-78488 Bluetooth LE on Windows (WinRT backend) fails to discover service details from Android server/slave
- Closed
- relates to
-
QTBUG-80770 Bluetooth Low Energy: ServiceState 'ServiceDiscovered' is never reached in Windows 10 Console Application
- Closed