Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.2
-
None
-
-
8
-
Team 1 Foundation_Sprint 46
Description
In the QtBluetoothLEServer.onCharacteristicWriteRequest callback method there is code that calls sendNotificationOrIndication if a remote device writes to the characteristic. This causes unwanted indications or notifications.
When implementing the Fitness Machine - Fitness Machine Control Point characteristic, this characteristic is configured as 'Write, Indicate'. Normal interaction with this characteristic involves a Central writing a command to the characteristic and then receiving an indication containing the response.
In attempting to implement this behavior on Android, I observed that when the characteristic was written to, it would immediately indicate the value just written and then my application would indicate the actual response.
I don't believe the peripheral should automatically indicate/notify when the characteristic is configured for both write and notify/indicate whenever it is written to.