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

Android Bluetooth peripheral characteristic should not automatically indicate when remote writes to it.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Android

      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.

        Attachments

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

          Activity

            People

            Assignee:
            ablasche Alex Blasche
            Reporter:
            crobertdiii Robert Daniels
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes