Important: Please read the Qt Code of Conduct -

QBluetoothDeviceInfo how to filter cached devices

  • 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!

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

    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,

  • This post is deleted!

Log in to reply