Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Bluetooth Low Energy Characteristic Indications (not Notifications)
Forum Updated to NodeBB v4.3 + New Features

Bluetooth Low Energy Characteristic Indications (not Notifications)

Scheduled Pinned Locked Moved Unsolved General and Desktop
bluetooth low eindications
3 Posts 3 Posters 2.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ZSoftZ Offline
    ZSoftZ Offline
    ZSoft
    wrote on last edited by
    #1

    Can anybody explain how Bluetooth Low Energy Indications (QLowEnergyCharacteristic::Indicate) are supposed to work please?
    There is very little documentation on them so I assume they work very similair to BTLE Notifications. Is that correct?

    The Heart Listener example has this code where notifications are enabled:
    const QLowEnergyDescriptor m_notificationDesc = characteristic.descriptor(QBluetoothUuid::ClientCharacteristicConfiguration);
    if (m_notificationDesc.isValid()) m_service->writeDescriptor(m_notificationDesc, QByteArray::fromHex("0100"));

    So is it a matter of setting the bit flags differently?

    And can I assume indiciations are delivered through characteristicChanged?
    connect(m_service, SIGNAL(characteristicChanged(QLowEnergyCharacteristic,QByteArray))

    I would be very thankful for a small example or verification of my assumptions.
    Cheers

    1 Reply Last reply
    0
    • JosaphatJ Offline
      JosaphatJ Offline
      Josaphat
      wrote on last edited by
      #2

      A bit of a late response, but...

      Assuming the GATT server on the other end has a characteristic that allows for Indicate, then the only thing that needs to change is the value that you write to the descriptor. Set Bit 1 of the CCC to enable indicates by writing "0200" instead of "0100" (the descriptor is little-endian according to the BLE documentation for the Client Characteristic Configuration descriptor).

      As far as I know, indications are delivered with the characteristicChanged signal just like notifications.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SherifOmran
        wrote on last edited by
        #3

        a little bit late but for anybody searching. Indication is different than notification in that there is a confirmation that data sent from peripherical (hardware measuring device as heart rate) to the central device (same as your phone app) reached. Notification does not offer this confirmation. It is something like udp (no confiramtion available) and http (confirmation available)

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved