Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QBluetoothDeviceInfo how to filter cached devices
Forum Updated to NodeBB v4.3 + New Features

QBluetoothDeviceInfo how to filter cached devices

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 655 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.
  • Angel PopovA Offline
    Angel PopovA Offline
    Angel Popov
    wrote on last edited by Angel Popov
    #1

    Hey there!

    I'm using QBluetoothDeviceDiscoveryAgent to search for bluetooth le devices on QT 5.12.2 with Bluez 5.48.
    Once a device is being discovered bluez makes cache of it, thus every time when deviceDiscovered is triggered cached devices get scanned.

    How can I differentiate between cached devices (which are not avaliable I cannot connect to them) and a device that I'm able to connect?

    I try to use isCached(), but it returns only false.

    Thanks in advance!

    A 1 Reply Last reply
    1
    • Angel PopovA Angel Popov

      Hey there!

      I'm using QBluetoothDeviceDiscoveryAgent to search for bluetooth le devices on QT 5.12.2 with Bluez 5.48.
      Once a device is being discovered bluez makes cache of it, thus every time when deviceDiscovered is triggered cached devices get scanned.

      How can I differentiate between cached devices (which are not avaliable I cannot connect to them) and a device that I'm able to connect?

      I try to use isCached(), but it returns only false.

      Thanks in advance!

      A Offline
      A Offline
      abeat
      wrote on last edited by
      #2

      I had the same issue under Linux that isCached always returns false. The only way to reset the cache under linux was to
      call

      systemctl restart bluetooth
      

      But this needs sudo rights and is not that elegant. Could QT either provide a valid way to get isCached() or to remove all devices on start e.g. reset the cache?

      Thanks and best regards,

      1 Reply Last reply
      1
      • A Offline
        A Offline
        abeat
        wrote on last edited by
        #3
        This post is deleted!
        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