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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.1
    • None
    • Android version 9, macOS 11.0.1, Qt 5.15.1
    • 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. BLEScanner.jpg
          BLEScanner.jpg
          172 kB
        2. bluetooth.pklg
          14 kB
        3. BluetoothLowEnergy.zip
          11 kB
        4. out.log
          1 kB
        5. Screen Shot 2021-06-03 at 8.58.51 a.m..png
          Screen Shot 2021-06-03 at 8.58.51 a.m..png
          586 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes