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 Vincent Wochnik

Revision:
96:5dfdc8568e9f
Parent:
95:010b0f7a0a1a
Child:
99:e369fc75c000
--- a/operation/ControlParser.cpp	Wed Apr 22 11:22:25 2015 +0000
+++ b/operation/ControlParser.cpp	Mon Apr 27 10:50:21 2015 +0000
@@ -2,6 +2,7 @@
 #include <string.h>
 #include "ControlParser.h"
 #include "DeviceFeedback.h"
+#include "LCDDisplay.h"
 #include "logging.h"
 
 void ControlParser::handleControlMessage(const char *buf)
@@ -96,15 +97,15 @@
                 }
         } else if (opType == 221) {
                 char line[30] = {0};
-                size_t num = tok.len<30 ? tok.len : 30;
+                size_t num = tok.len < 30 ? tok.len : 30;
                 if (tok.type == Token::STRING)
                         strncpyEscape(line, tok.p, num);
                 else
                         strncpy(line, tok.p, num);
-                _lcdDisplay.setFirstLine(line);
+                LCDDisplay::inst().setFirstLine(line);
         } else if (opType == 222) {
                 char config[128] = {0};
-                size_t num = tok.len<128 ? tok.len : 128;
+                size_t num = tok.len < 127 ? tok.len : 127;
                 strncpy(config, tok.p, num);
                 ret = _configSync.updateConfiguration(config);
         } else {