Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C027 C027_Support mbed mbed-rtos MbedSmartRest LM75B MMA7660 C12832
Fork of MbedSmartRestTest by
Diff: program.cpp
- Revision:
- 24:8f9b678a7932
- Parent:
- 20:ef9cc1b42e9d
- Child:
- 25:8604bef314c1
diff -r 0a48eebaaba8 -r 8f9b678a7932 program.cpp
--- 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);
}
-
