Test of xively server connectivity layer

Dependencies:   C12832_lcd EthernetInterface mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
olgierdh
Date:
Mon May 13 20:14:33 2013 +0000
Parent:
0:a9881ec5a2b4
Commit message:
Removed credentials

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r a9881ec5a2b4 -r c9c854dada35 main.cpp
--- a/main.cpp	Mon May 13 20:10:35 2013 +0000
+++ b/main.cpp	Mon May 13 20:14:33 2013 +0000
@@ -34,12 +34,14 @@
 
 #define ADDRESS "api.cosm.com"
 #define PORT 80
+#define API_KEY "youre_api_key"
+#define FEED_ID "youre_feed_id"
 
-#define MSG "PUT /v2/feeds/117107.csv HTTP/1.1\r\n"\
+#define MSG "PUT /v2/feeds/" FEED_ID ".csv HTTP/1.1\r\n"\
             "Host: api.xively.com\r\n"\
-            "User-Agent: libxively/0.1.x\r\n"\
+            "User-Agent: mbed_test/0.1.x\r\n"\
             "Accept: */*\r\n"\
-            "X-ApiKey: ISx1ANJU8P4U2dPRqCfACUrHDBOSAKxOS3ZzazZ4Tk0zND0g\r\n"\
+            "X-ApiKey: " API_KEY "\r\n"\
             "Content-Type: text/plain\r\n"\
             "Content-Length: 33\r\n\r\n"\
             "0001,test1\n"\