summaryrefslogtreecommitdiff
path: root/examples/bluetooth/lowenergyscanner/characteristicinfo.cpp
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2023-03-07 17:31:33 +0100
committerIvan Solovev <ivan.solovev@qt.io>2023-03-27 15:27:45 +0100
commit4eac30923466e31d16288949979973d1db4e035f (patch)
treea5156e4d52f0c291a35164e746cf4987a5633385 /examples/bluetooth/lowenergyscanner/characteristicinfo.cpp
parentefc852b0ea327831fcceaa925be8e6721ce93297 (diff)
downloadqtconnectivity-4eac30923466e31d16288949979973d1db4e035f.tar.gz
Windows: optimize BTLE device discovery
Previously we were doing full service discovery every time when the BluetoothLEAdvertisementWatcher reports a new advertisement. This results in a very high CPU usage during BTLE device discovery on some configurations. In practice such approach might not be needed, because most BTLE devices repeatedly advertise the same data. With this patch we do a detailed service discovery only when a new device is added, or when the list of advertised services has changed. Note that we still need to handle all the incoming advertisements, because we want to report changes in other parameters, such as RSSI. Fixes: QTBUG-111116 Pick-to: 6.5 6.5.0 6.2 Change-Id: I0863739a2fb21d04e9a728adc68e3f197f1966e3 Reviewed-by: Juha Vuolle <juha.vuolle@qt.io> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/characteristicinfo.cpp')
0 files changed, 0 insertions, 0 deletions