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

BTLE Android Peripheral does not reuse handles

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.2.0 Beta4
    • None
    • Android

    Description

      Starting a BTLE service, it uses higher and higher handle numbers in each connection. This might be a hint that the BTLE services are not properly unregistered in the Android system.

      To reproduce:
      Start bluetoothtestdevice https://codereview.qt-project.org/c/qt/qtconnectivity/+/347091 on Android.
      In the log, one sees the handle numbers used. On my Google Pixel 4a it is 10, 13, 16 after application start.
      Then start a test as in https://codereview.qt-project.org/c/qt/qtconnectivity/+/347342 in another device.
      After the first connect/disconnect, bluetoothtestdevice is advertising on handles 28/31/34.
      After another connect/disconnect, bluetoothtestdevice is advertising on handles 46/49/52.

      Attachments

        Issue Links

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

          Activity

            People

              ablasche Alex Blasche
              andreasbuhr Andreas Buhr
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes