diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2016-07-26 08:51:01 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2016-08-01 15:05:18 +0000 |
commit | f5fe6ce47841be34d4b851725d80133ff6d14fee (patch) | |
tree | 1d9e78e6802c1c8f05cf60d537e6cc12640efae4 /src/bluetooth/doc/src/bluetooth-index.qdoc | |
parent | 66fc8db55e03648f1c65dcbeb58ff8f06e10f6f5 (diff) |
Android: Avoid newDevice signal spamming in QBluetoothDeviceDiscoveryAgent
SDP based scans and LE scans can find the saame device (address) with
different device names. This is caused by the fact that different
channels are used to retrieve the information. Those two channels
can advertise different device names.
Before this patch the first entry was added to the list of discovered
devices. When the second entry with different name came about, the
entry was never added to the list of discovered devices. Nevertheless
the deviceDiscovered() signal was triggered each time. This lead to a
situation where application which were listening to the signal only
never noticed the duplicated entries and showed a new discovered
device each time the address matched but not the remainder of the
device info.
This problem was made worse by the fact that the LE scan on Android
continues to fire the new device discovered signal once per second.
This patch distinguishes devices with the same address but different
names. They are treated as separate entries now.
Change-Id: I77259a888708309338110831e86bb7ce9253f2a6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/bluetooth/doc/src/bluetooth-index.qdoc')
0 files changed, 0 insertions, 0 deletions