summaryrefslogtreecommitdiffstats
path: root/tradeshow/iot-sensortag/bluetoothdevice.h
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@qt.io>2017-02-13 12:36:45 +0100
committerKari Hautamäki <kari.hautamaki@qt.io>2017-02-14 13:08:22 +0000
commit2a0f4339dfd31e648fcc10394352f648369fd40c (patch)
treebf0d30581789c83210eb3e48c99233fc499e6ae7 /tradeshow/iot-sensortag/bluetoothdevice.h
parentf8aa599c5d3acc3ca52010837e4cbf9935908135 (diff)
iot-sensortag: Do not hardcode characteristic handles
Depending on the tag's firmware version the characteristics' handle values might be different. Following TI's advice we should do a proper lookup instead of hardcoding them. Change-Id: I95934e554563e99118fc8ffe87de44e87d409ecf Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io> Reviewed-by: Kari Hautamäki <kari.hautamaki@qt.io>
Diffstat (limited to 'tradeshow/iot-sensortag/bluetoothdevice.h')
-rw-r--r--tradeshow/iot-sensortag/bluetoothdevice.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tradeshow/iot-sensortag/bluetoothdevice.h b/tradeshow/iot-sensortag/bluetoothdevice.h
index 26ad814..435fd22 100644
--- a/tradeshow/iot-sensortag/bluetoothdevice.h
+++ b/tradeshow/iot-sensortag/bluetoothdevice.h
@@ -181,6 +181,11 @@ private:
QLowEnergyService* humidityService;
QLowEnergyService* lightService;
QLowEnergyService* motionService;
+ QLowEnergyHandle irTemperatureHandle;
+ QLowEnergyHandle baroHandle;
+ QLowEnergyHandle humidityHandle;
+ QLowEnergyHandle lightHandle;
+ QLowEnergyHandle motionHandle;
DeviceState m_deviceState;
bool m_temperatureMeasurementStarted;
bool m_barometerMeasurementStarted;