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>
This commit is contained in:
parent
25ce67e87e
commit
0f860d2d98
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue