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

QLowEnergyService::writeDescriptor never emits the QLowEnergyService::descriptorWritten signal

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Android version 9, macOS 11.0.1, Qt 5.15.1
    • Platform/s:
      macOS

      Description

      I have attached an example code where I use an android program called BLE Scanner that allows to use BLE advertisers, in this example create a Heart Rate advertiser.

      deviceName = "devic"
      serviceUUID = "{0000180d-0000-1000-8000-00805f9b34fb}";
      characteristicUUID = "{00002a37-0000-1000-8000-00805f9b34fb}"

      this feature is of type Notify but when I try to enable it using:

      service-> writeDescriptor (notificationDescriptor, QByteArray :: fromHex ("0100"));

      The QLowEnergyService::descriptorWritten signal is supposed to be emitted, but this never happens, as a result, I can not retrieve the information from the peripheral device.

       

      Note:

      This behavior also happens when I try to run the "Bluetooth Low Energy Heart Rate Game" example

        Attachments

        1. BluetoothLowEnergy.zip
          11 kB
        2. out.log
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            ablasche Alex Blasche
            Reporter:
            carlos.gonzalez carlos.gonzalez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes