summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/lowenergyscanner/device.cpp
diff options
context:
space:
mode:
authorAndreas Buhr <andreas.buhr@qt.io>2021-06-14 12:40:02 +0200
committerAndreas Buhr <andreas.buhr@qt.io>2021-06-14 17:16:23 +0200
commit0f860d2d988fcacaceb1755449e21b014092a499 (patch)
treec325fe3fb8ef4e694785619eba42f5d5ae88af10 /examples/bluetooth/lowenergyscanner/device.cpp
parent25ce67e87e273fcf838c2fee36f59212fe20b2ec (diff)
Increase timeout of lowenergyscanner
The low timeout of five seconds leads to lots of frustration. This patch extends to 25 seconds, which is most of the time long enough. Pick-to: 6.2 Change-Id: I2157ac0e794011a65e306dd7451e35e1bc0e7c8d Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/device.cpp')
-rw-r--r--examples/bluetooth/lowenergyscanner/device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/bluetooth/lowenergyscanner/device.cpp b/examples/bluetooth/lowenergyscanner/device.cpp
index 22c475e4..62352459 100644
--- a/examples/bluetooth/lowenergyscanner/device.cpp
+++ b/examples/bluetooth/lowenergyscanner/device.cpp
@@ -65,7 +65,7 @@ Device::Device()
{
//! [les-devicediscovery-1]
discoveryAgent = new QBluetoothDeviceDiscoveryAgent();
- discoveryAgent->setLowEnergyDiscoveryTimeout(5000);
+ discoveryAgent->setLowEnergyDiscoveryTimeout(25000);
connect(discoveryAgent, &QBluetoothDeviceDiscoveryAgent::deviceDiscovered,
this, &Device::addDevice);
connect(discoveryAgent, &QBluetoothDeviceDiscoveryAgent::errorOccurred, this,