aboutsummaryrefslogtreecommitdiff
path: root/apps/sm-get-value.cpp
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2016-02-14 14:41:52 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2016-02-14 14:41:52 +0100
commit8ded9e3d0bbc2d7cdc5b9f01b4fed9c8685caf82 (patch)
treee155a951afe91f4ddf349ce70a71150943ed8cfd /apps/sm-get-value.cpp
parentf6493150c1a7172bcd8c9cc1790829285f707ee9 (diff)
downloadble-toys-8ded9e3d0bbc2d7cdc5b9f01b4fed9c8685caf82.tar.gz
ble-toys-8ded9e3d0bbc2d7cdc5b9f01b4fed9c8685caf82.tar.bz2
ble-toys-8ded9e3d0bbc2d7cdc5b9f01b4fed9c8685caf82.tar.xz
ble-toys-8ded9e3d0bbc2d7cdc5b9f01b4fed9c8685caf82.zip
mqtt: Using mqtt_support utilities from the mqtt-cassandra bridge.
Diffstat (limited to 'apps/sm-get-value.cpp')
-rw-r--r--apps/sm-get-value.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/sm-get-value.cpp b/apps/sm-get-value.cpp
index 43729d8..0572155 100644
--- a/apps/sm-get-value.cpp
+++ b/apps/sm-get-value.cpp
@@ -3,6 +3,8 @@
#include <chrono>
#include <boost/uuid/uuid_io.hpp>
#include <thread>
+#include <log4cplus/logger.h>
+#include <log4cplus/loggingmacros.h>
#include "ble/Bluetooth.h"
#include "SoilMoisture.h"
#include "trygvis/sensor.h"
@@ -157,7 +159,7 @@ public:
}
}
- for_each(begin(sensorIndexes), end(sensorIndexes), [&](auto i) {
+ for_each(begin(sensorIndexes), end(sensorIndexes), [&](uint8_t i) {
if (i >= sensorCount) {
// Ignore invalid sensors
return;