summaryrefslogtreecommitdiffstats
path: root/tradeshow/iot-sensortag/bluetoothdataprovider.cpp
diff options
context:
space:
mode:
authorKari Hautamäki <kari.hautamaki@qt.io>2017-02-13 10:28:20 +0200
committerTitta Heikkala <titta.heikkala@qt.io>2017-02-15 07:56:58 +0000
commit4b5beeedda5e129018c167dd0a5cd1f17fc5c246 (patch)
treeb96df903324ce8f080c9af97c98488d39aab4905 /tradeshow/iot-sensortag/bluetoothdataprovider.cpp
parentcacd82b316c8632edde4c37e92d0c0e9747bf5d6 (diff)
iot-sensortag: Add sensor tag setup for Embedded World
- Added two sensor tags with unique capabilities by faking that each provide only a subset of available sensor data Change-Id: I9b7ad9f7b41ea7c5abaad0bc3fbe063219b19a9e Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
Diffstat (limited to 'tradeshow/iot-sensortag/bluetoothdataprovider.cpp')
-rw-r--r--tradeshow/iot-sensortag/bluetoothdataprovider.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tradeshow/iot-sensortag/bluetoothdataprovider.cpp b/tradeshow/iot-sensortag/bluetoothdataprovider.cpp
index 0d2a750..e3c746c 100644
--- a/tradeshow/iot-sensortag/bluetoothdataprovider.cpp
+++ b/tradeshow/iot-sensortag/bluetoothdataprovider.cpp
@@ -87,7 +87,6 @@ bool BluetoothDataProvider::startDataFetching()
timer.setSingleShot(true);
connect(&timer, &QTimer::timeout, this, &BluetoothDataProvider::startServiceScan);
timer.start();
- qCDebug(boot2QtDemos) << "Active Device is now " << activeDevice->getName() << " at "<< activeDevice->getAddress();
}
return true;
}
@@ -218,6 +217,9 @@ void BluetoothDataProvider::updateState()
case BluetoothDevice::Disconnected:
setState(Disconnected);
break;
+ case BluetoothDevice::Scanning:
+ setState(Scanning);
+ break;
case BluetoothDevice::Connected:
setState(Connected);
break;