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

Android BTLE: A notify only characteristic is sometimes not discovered

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.9.0 Beta 2
    • 5.8.0 RC, 5.8
    • None
    • Qt app on android Samsung Galaxy Tab S2.
      iPad with native app as remote peripheral.

      In a Qt App running on android I have a case where a notify only characteristic is not discovered by the QLowEnergyServer::discoverDetails() method.

      This doesn't happen always, but when it happens I'm getting the following error log:
      W QtBluetoothGatt: Performing queued job, handle: 76 Read (false) ValueKnown: false Skipping: false Characteristic
      W QtBluetoothGatt: onCharacteristicRead during discovery error: 2
      W QtBluetoothGatt: Performing queued job, handle: 77 Read (false) ValueKnown: false Skipping: true CharacteristicValue
      W QtBluetoothGatt: Performing queued job, handle: 78 Read (false) ValueKnown: false Skipping: false Descriptor

      Error code 2 means GATT READ NOT PERMITTED which is obvious because the characteristic has no read property set.

      For me it makes no sense to try to read from characteristics during discoverDetails(). But maybe I missed a use case for this.

      I created a patch, which adds the characteristic even if
      the reading fails.

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

            ablasche Alex Blasche
            qibjaw Christian Waßmuth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes