SmartREST client reference implementation for the u-blox C027 mbed compatible device.

Dependencies:   C027 C027_Support mbed mbed-rtos MbedSmartRest LM75B MMA7660 C12832

Fork of MbedSmartRestTest by Vincent Wochnik

Revision:
24:8f9b678a7932
Parent:
20:ef9cc1b42e9d
Child:
25:8604bef314c1
--- a/program.cpp	Mon Mar 24 09:58:46 2014 +0000
+++ b/program.cpp	Tue Apr 15 16:59:56 2014 +0000
@@ -51,7 +51,8 @@
 );
 
 float interval = 120.0; // send measurements every two minutes
-MbedSmartRest client("http://developer.cumulocity.com/s", "vaillant/admin", "klanpi", "com_u-blox_C027_REV-A_0.10");
+MbedSmartRest client("developer.cumulocity.com", 80, "vaillant/admin", "klanpi", "com_u-blox_C027_REV-A_0.10_Test1233123");
+//MbedSmartRest client("vsrv41584.customer.xenway.de", 8888, "vaillant/admin", "klanpi", "com_u-blox_C027_REV-A_0.10_Test123");
 
 int program(void)
 {
@@ -59,7 +60,7 @@
 
     lcd_tenant("vaillant");
     puts("Hello!");
-
+    
     puts("Bootstrapping");
     lcd_status("Bootstrapping");
     if (client.bootstrap(srtpl) != SMARTREST_SUCCESS) {
@@ -67,7 +68,7 @@
         lcd_status("Bootstrapping failed.");
         return 2;
     }
-    
+   
     puts("Starting action...");
     
     if ((deviceId = existing()) == 0) {
@@ -327,4 +328,3 @@
     measurement.add(msgId).add(devId).add(x).add(y).add(z);
     aggr.add(measurement);
 }
-