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

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.2
    • None
    • Android
    • 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.

      Attachments

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

        Activity

          People

            vuokko Juha Vuolle
            crobertdiii Robert Daniels
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes