Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2.0 Beta4
-
None
-
-
3
-
4deb789fe67615ebfa99af6f1071d20b0265a2e9 (qt/qtconnectivity/dev) 716bdac1e84874245cfceec5ada17c3525bc1606 (qt/qtconnectivity/6.2) b0d5e01c3160dc734fa8c4f182a1503abcac5d8f (qt/tqtc-qtconnectivity/5.15)
-
Team 1 Foundation_Sprint 45, Team 1 Foundation_Sprint 46, Team 1 Foundation_Sprint 47
Description
Services are not registered correctly if they are added too fast. The following code leads to incorrect registration of the services and in turn to the problem described above, that the wrong characteristic is read.
for (const auto &serviceData : serviceDefinitions) { services.emplaceBack(leController->addService(serviceData)); }
The following code leads to correct registration of the services. The correct characteristics are read subsequently.
for (const auto &serviceData : serviceDefinitions) { services.emplaceBack(leController->addService(serviceData)); std::this_thread::sleep_for (std::chrono::seconds(1)); }
Attachments
Issue Links
- resulted from
-
QTBUG-96684 BTLE Android Peripheral does not reuse handles
-
- Reported
-