Official reference client implementation for Cumulocity SmartREST on u-blox C027.
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: measurement/AnalogMeasurement.cpp
- Revision:
- 76:b07effe83fb8
- Parent:
- 74:ca3001991fdc
- Child:
- 77:f6717e4eccc4
--- a/measurement/AnalogMeasurement.cpp Wed Feb 18 10:19:51 2015 +0000 +++ b/measurement/AnalogMeasurement.cpp Wed Feb 25 10:06:11 2015 +0000 @@ -5,7 +5,7 @@ #include "FloatValue.h" #include "logging.h" -#define THRESHOLD_PERCENT_ANA 0.05 // Percentage cut-off for avoiding sending similar analog sensor data. +#define THRESHOLD_PERCENT_ANA 0.03 // Percentage cut-off for avoiding sending similar analog sensor data. // Time interval for forcing a sending even if analog sensor readings are constantly similar (in seconds). #define TIME_LIMIT_ANA 900 @@ -79,7 +79,7 @@ float t_start = sendingTimer.read(); if (_client.send(record) != SMARTREST_SUCCESS) { - aError("Signal measurement failed."); + aWarning("Sending analog readings failed."); _client.stop(); return false; }