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

Timing issues in BTLE peripheral on Android

    XMLWordPrintable

    Details

    • Platform/s:
      Android
    • Commits:
      4deb789fe67615ebfa99af6f1071d20b0265a2e9 (qt/qtconnectivity/dev) 716bdac1e84874245cfceec5ada17c3525bc1606 (qt/qtconnectivity/6.2) b0d5e01c3160dc734fa8c4f182a1503abcac5d8f (qt/tqtc-qtconnectivity/5.15)

      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

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

            Activity

              People

              Assignee:
              vuokko Juha Vuolle
              Reporter:
              andreasbuhr Andreas Buhr
              PM Owner:
              Vladimir Minenko Vladimir Minenko
              RnD Owner:
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes