diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2016-05-13 10:42:05 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2016-05-18 12:20:28 +0000 |
commit | 411a8cb41ea9f47f42c725e1740e4583aa7ce291 (patch) | |
tree | b62b62674348c9ab13f905efcedf6986298dbed4 | |
parent | 54c9cd9e28bc6f0a2fa5118cfdbe922d71db6623 (diff) | |
download | qtconnectivity-411a8cb41ea9f47f42c725e1740e4583aa7ce291.tar.gz |
Increase the BTLE scan timeout to 25s
It seems that some BTLE devices require more than 10s to be found.
This timeout change increases the chances to find slow remote devices.
The user has to cancel if he doesn't want to wait the full 25s.
Task-number: QTBUG-53012
Change-Id: Id9bafbe09528619ac6dff17c33322ef90beb8829
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
-rw-r--r-- | src/bluetooth/qbluetoothdevicediscoveryagent_android.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent_android.cpp b/src/bluetooth/qbluetoothdevicediscoveryagent_android.cpp index f977c471..d335dc7a 100644 --- a/src/bluetooth/qbluetoothdevicediscoveryagent_android.cpp +++ b/src/bluetooth/qbluetoothdevicediscoveryagent_android.cpp @@ -273,7 +273,7 @@ void QBluetoothDeviceDiscoveryAgentPrivate::startLowEnergyScan() if (!leScanTimeout) { leScanTimeout = new QTimer(this); leScanTimeout->setSingleShot(true); - leScanTimeout->setInterval(10000); + leScanTimeout->setInterval(25000); connect(leScanTimeout, &QTimer::timeout, this, &QBluetoothDeviceDiscoveryAgentPrivate::stopLowEnergyScan); } |