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. BLE scan devices cached on Android
Forum Updated to NodeBB v4.3 + New Features

BLE scan devices cached on Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 302 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
    CPWD APA
    wrote on last edited by
    #1

    Hello,

    My problem is not a bug.
    My app can connect to BLE devices. Those devices have a changing advertising name.
    When I scan, the name is cached, if a change occurs, it’s not visible in the app.

    The quick fix that I found is disabling/enabling the Bluetooth on the smartphone. This operation clears the cache.
    See the note here : https://doc.qt.io/qt-5/qlowenergycontroller.html#discoverServices
    Note that my problem is not on the Services Discovery but with the QBluetoothDeviceDiscoveryAgent::start(QBluetoothDeviceDiscoveryAgent::LowEnergyMethod)

    But it’s not really user friendly, if the smartphone is connected to other Bluetooth devices like headphones, it will cut the connection.

    Do you have a solution ? The problem does not appear on iOS.

    Thanks.
    Cordially.

    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