Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15.10, 6.3.1
-
Windows 10 Pro 21H2, MSVC 2019 x64
-
-
Foundation PM Staging
Description
Steps to reproduce
- Disconnect all Bluetooth devices from your machine.
- Run the Bluetooth Low Energy Scanner Example (https://doc.qt.io/qt-6/qtbluetooth-lowenergyscanner-example.html ) and search for devices.
- Click on any device in the "Select a device" screen to enter the "Services List" screen, then click on any service to enter the "Characteristics" screen.
- Keep clicking "Back" to return to the "Select a device" screen.
- Click on a different device in the "Select a device" screen to enter the "Services List" screen, then click on any service to enter the "Characteristics" screen.
- Keep clicking "Back" to return to the "Select a device" screen.
- Close the app.
Outcomes
The outcomes differ, depending on whether or not the devices were paired with Windows. This is what you would see in the Windows Action Center Bluetooth tile at the end of each step above.
If the selected devices were not paired with Windows, you see:
- "Not Connected"
- "Not Connected"
- <Name of 1st selected device>
- "Not Connected"
- <Name of 2nd selected device>
- "Not Connected"
- "Not Connected"
If the selected devices were previously paired with Windows, you see:
- "Not Connected"
- "Not Connected"
- <Name of 1st selected device>
- <Name of 1st selected device>
- "Connected (2)"
- "Connected (2)"
- "Not Connected"
Notes
The differences seen in Steps #4-#6 show that, when QLowEnergyController::disconnectFromDevice() is called and the QLowEnergyController::disconnected() signal is emitted, unpaired devices get disconnected, but paired devices remain connected to Windows. The connection would remain active until the application shuts down – this can prevent others from connecting to the device.
The attached screenshots show the Action Center tiles with 0, 1, and 2 devices connected.