Upload to cosm (pachube) from mbed.

Dependencies:   EthernetInterface SCP1000 WebSocketClient mbed-rtos mbed

thank you for http://mbed.org/forum/bugs-suggestions/topic/3956/ thread.

Use AMS302,LM61BIZ,CHS-GSS,SCP-1000 and StarBoard Orange.

Revision:
2:a8935c580ace
Parent:
1:de9966da02f1
Child:
3:80228f6bc21a
--- a/main.cpp	Thu Dec 06 17:47:14 2012 +0000
+++ b/main.cpp	Thu Dec 06 17:49:24 2012 +0000
@@ -85,7 +85,7 @@
 
         myled = 1;
         sprintf (cms,"{\"method\" : \"put\",\"resource\" : \"%s\",\"params\" : {},\"headers\" : {\"X-ApiKey\":\"%s\"},\"body\" :{\"version\" : \"1.0.0\",\"datastreams\" : [{\"id\" : \"3\",\"current_value\" : \"%4.0f\"},{\"id\" : \"4\",\"current_value\" : \"%4.0f\"},{\"id\" : \"5\",\"current_value\" : \"%3.0f\"},{\"id\" : \"6\",\"current_value\" : \"%3.0f\"}]},\"token\" : \"0x%d\"}\r\n",feed,apikey,r_hpa,r_light,r_temp,r_humid,token);
-        //set your ID and value
+        //set your ID and value 
         printf ("%s\r\n",cms);
         token++;
         int res = ws.send(cms);