summaryrefslogtreecommitdiffstats
path: root/tradeshow/iot-sensortag/bluetoothapiconstants.h
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@qt.io>2017-02-14 11:06:55 +0100
committerKari Hautamäki <kari.hautamaki@qt.io>2017-02-14 14:04:47 +0000
commitcc73478e1ff48a6e469d3856c552e7a5e3d5023d (patch)
tree29a4d2ebd8dc262d789d71754ccbbd306975dd88 /tradeshow/iot-sensortag/bluetoothapiconstants.h
parent25aa7288205ba8371466768392a3be02a5c8f5d7 (diff)
iot-sensortag: Rework service discovery
Instead of iterating over the list of the controller's services after discovery is finished, handle the found services one by one when the according serviceDiscovered signal is emitted. Change-Id: I84d879059222189fb106e085bd9f2e4d3cb44bb5 Reviewed-by: Kari Hautamäki <kari.hautamaki@qt.io>
Diffstat (limited to 'tradeshow/iot-sensortag/bluetoothapiconstants.h')
-rw-r--r--tradeshow/iot-sensortag/bluetoothapiconstants.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tradeshow/iot-sensortag/bluetoothapiconstants.h b/tradeshow/iot-sensortag/bluetoothapiconstants.h
index b29d73b..57d0849 100644
--- a/tradeshow/iot-sensortag/bluetoothapiconstants.h
+++ b/tradeshow/iot-sensortag/bluetoothapiconstants.h
@@ -52,6 +52,13 @@
// NOTE! This file should only contain defines, no implementation
+// These service UUIDs come from the Texas Intruments SensorTag Bluetooth LE API specification
+#define IRTEMPERATURESENSOR_SERVICE_UUID "f00aa00-0451-4000-b000-000000000000"
+#define BAROMETER_SERVICE_UUID "f000aa40-0451-4000-b000-000000000000"
+#define HUMIDITYSENSOR_SERVICE_UUID "f000aa20-0451-4000-b000-000000000000"
+#define LIGHTSENSOR_SERVICE_UUID "f000aa70-0451-4000-b000-000000000000"
+#define MOTIONSENSOR_SERVICE_UUID "f000aa80-0451-4000-b000-000000000000"
+
/* Timeouts (values between 100ms and 2500ms allowed by API specification.
* API values are passed in hex as strings and multiplied by 10 in SensorTag.
* These values can be modifed as needed by performance.