diff options
author | Oliver Wolff <oliver.wolff@qt.io> | 2017-02-13 12:36:45 +0100 |
---|---|---|
committer | Kari Hautamäki <kari.hautamaki@qt.io> | 2017-02-14 13:08:22 +0000 |
commit | 2a0f4339dfd31e648fcc10394352f648369fd40c (patch) | |
tree | bf0d30581789c83210eb3e48c99233fc499e6ae7 /tradeshow/iot-sensortag/bluetoothdevice.h | |
parent | f8aa599c5d3acc3ca52010837e4cbf9935908135 (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.h | 5 |
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; |