BLE scan devices cached on Android
-
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.