Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.8.0 RC, 5.8
-
None
-
Qt app on android Samsung Galaxy Tab S2.
iPad with native app as remote peripheral.
Description
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.
Attachments
For Gerrit Dashboard: QTBUG-58056 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
181873,2 | Add characteristic even if the read fails | 5.8 | qt/qtconnectivity | Status: MERGED | +2 | 0 |