diff options
Diffstat (limited to 'tradeshow/iot-sensortag/bluetoothdataprovider.cpp')
-rw-r--r-- | tradeshow/iot-sensortag/bluetoothdataprovider.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tradeshow/iot-sensortag/bluetoothdataprovider.cpp b/tradeshow/iot-sensortag/bluetoothdataprovider.cpp index 0987d0d..06e9fd5 100644 --- a/tradeshow/iot-sensortag/bluetoothdataprovider.cpp +++ b/tradeshow/iot-sensortag/bluetoothdataprovider.cpp @@ -93,10 +93,7 @@ bool BluetoothDataProvider::startDataFetching() this, &BluetoothDataProvider::lightIntensityReceived); connect(m_btDevice, &BluetoothDevice::motionChanged, this, &BluetoothDataProvider::motionReceived); - timer.setInterval(1000); - timer.setSingleShot(true); - connect(&timer, &QTimer::timeout, this, &BluetoothDataProvider::startServiceScan); - timer.start(); + startServiceScan(); } return true; } |