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

Files at this revision

API Documentation at this revision

Comitter:
xinlei
Date:
Wed May 20 13:17:19 2015 +0000
Parent:
120:f85151fa1a8a
Child:
122:68217ccb8cd1
Commit message:
disableDebug defautls to error/warning, agent wait 400 ms when sending

Changed in this revision

MbedAgent.cpp Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/MbedAgent.cpp	Wed May 20 10:19:52 2015 +0000
+++ b/MbedAgent.cpp	Wed May 20 13:17:19 2015 +0000
@@ -107,7 +107,7 @@
             int l2 = reporters[i]->read(buf2+l, sizeof(buf2)-l, status, DISPLAY_LEN);
             if (l2) { // Refresh LCD display needed
                 LCDDisplay::inst().setThirdLine(status);
-                Thread::wait(300);
+                Thread::wait(400);
             } else if (!lcdThirdLineBlank && !l2) { // Clear LCD display needed
                 LCDDisplay::inst().setThirdLine("");
                 Thread::wait(100);
--- a/main.cpp	Wed May 20 10:19:52 2015 +0000
+++ b/main.cpp	Wed May 20 13:17:19 2015 +0000
@@ -44,9 +44,9 @@
 
 static void disableDebug()
 {
-       setLevel(A_NONE);
+       setLevel(A_WARNING);
        if (pMdm)
-           pMdm->setDebug(-1);
+           pMdm->setDebug(0);
 }
 
 static void shutdown()