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

Bluetooth low energy on windows characteristic written callback fires immediately

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P4: Low P4: Low
    • None
    • 5.8.0 Alpha
    • None
    • Windows 10 64 bit edition with 32 bit MSVC2015 exe
      Using qtconnectiity branch wip/win

      I've marked this as Qt 5.8 as I believe it will be compiled into the Qt 5.8 release but I'm not sure. I'm using the wip/win branch of qtconnectivity.

      In an application I connect to a device and send data, then continue sending data from a buffer in the characteristic written callback... The problem is that this callback is fired on windows (I mean windows exe not windows UWP) right after Qt writes the characteristic. The peripheral device sends a message back each time a characteristic is written but Qt doesn't get this until every characteristicwritten callback has been fired.

      Expected:

      <write characteristic>
      <characteristic written callback>
      <write characteristic again from within callback>
      <characteristic changed callback with new value from peripheral device>
      <characteristic written callback>
      <write characteristic again from within callback>
      <characteristic changed callback with new value from peripheral device>
      ...

      Actual:
      <write characteristic>
      <characteristic written callback>
      <write characteristic again from within callback>
      <characteristic written callback>
      <write characteristic again from within callback>
      <characteristic written callback>
      <write characteristic again from within callback>
      <characteristic changed callback with new value from peripheral device>
      <characteristic changed callback with new value from peripheral device>
      <characteristic changed callback with new value from peripheral device>
      <characteristic changed callback with new value from peripheral device>

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

            ablasche Alex Blasche
            thedjnk Mr nK
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes