Xively (Cosm, Pachube) feed see: http://mbed.org/users/gsfan/notebook/gainspan_wifi/

Dependencies:   GSwifi mbed

Revision:
2:a8ab83e57440
Parent:
1:0852a9bd5365
--- a/main.cpp	Wed Apr 03 08:48:41 2013 +0000
+++ b/main.cpp	Thu May 23 00:59:52 2013 +0000
@@ -5,7 +5,7 @@
 #define SSID "SSID"
 #define PASS "passkey"
 
-#define FEED_HOST "api.cosm.com"
+#define FEED_HOST "api.xively.com"
 #define FEED_ID "000000"
 #define API_KEY "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
 
@@ -24,7 +24,7 @@
     pc.printf(buf);
 }
 
-int cosm (char *data) {
+int xively (char *data) {
   int i;
   Host host;
   int cid;
@@ -72,8 +72,8 @@
     gs.getAddress(ipaddr, netmask, gateway, nameserver);
     pc.printf("ip %d.%d.%d.%d\r\n", ipaddr[0], ipaddr[1], ipaddr[2], ipaddr[3]);
     
-    pc.printf("Cosm\r\n");
-    cosm(data);
+    pc.printf("Xively\r\n");
+    xively(data);
 
     pc.printf("exit\r\n");
 }