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. BLE: reading a characteristic
Qt 6.11 is out! See what's new in the release blog

BLE: reading a characteristic

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.4k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    cidadao
    wrote on last edited by
    #1

    Hi all,

    I've been using the tech preview of QBluetooth that comes with Qt 5.4 with support for BLE and so far I've been able to write to characteristics and to receive notifications.
    However, the thing with readings, and according to documentation, is that the value is cached and is only updated after service's details discovery, a successful write operation or change notification.

    I'm discovering all services as the app starts so all of them will be on state ServiceDiscovered after a while.
    But then, how can I update the cached value of characteristics?

    I attempted to re-discover the service's details before trying to read a characteristic belonging to it but I don't get an updated value (and my BLE peripheral - which I'm developing so I have access do debugging utilities - receives nothing).

    Any suggestion?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cidadao
      wrote on last edited by
      #2

      Anyone using BLE with Qt?
      I wonder if reading a characteristic is only a limitation of the tech preview or if it will be available in Qt5.5.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        You can also try asking on the "interest mailing list":http://lists.qt-project.org/mailman/listinfo/interest You'll find there Qt's developers/maintainers (this forum is more user oriented)

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        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