1000char test

Dependencies:   EthernetInterface HTTPClient mbed-rtos mbed

Revision:
3:2d0c5df8d3ec
Parent:
2:270e2d0bb85a
Child:
4:f99718565897
--- a/main.cpp	Thu Aug 30 15:42:06 2012 +0000
+++ b/main.cpp	Tue Mar 08 00:42:54 2016 +0000
@@ -28,10 +28,14 @@
     //POST data
     HTTPMap map;
     HTTPText inText(str, 512);
-    map.put("Hello", "World");
-    map.put("test", "1234");
+    map.put("data", "{\"ts\":1457348930,\"dv\":\"JulianTestSensor\",\"s00\":[94,-384,4138]}");
+    //map.put("data", "{\"ts\":1457071217,\"dv\":\"JulianTestSensor\",\"s00\":[140,-357,4142],\"s01\":[134,-354,4127],\"s02\":[140,-355,4136],\"s03\":[128,-354,4103],\"s04\":[137,-359,4184],\"s05\":[133,-357,4099],\"s06\":[139,-355,4116],\"s07\":[142,-348,4157],\"s08\":[137,-356,4131],\"s09\":[135,-355,4120],\"s10\":[138,-355,4123],\"s11\":[143,-349,4145],\"s12\":[141,-357,4121]}");
+    //map.put("data", "{\"ts\":1457071217,\"dv\":\"JulianTestSensor\",\"s00\":[140,-357,4142],\"s01\":[134,-354,4127],\"s02\":[140,-355,4136],\"s03\":[128,-354,4103],\"s04\":[137,-359,4184],\"s05\":[133,-357,4099],\"s06\":[139,-355,4116],\"s07\":[142,-348,4157],\"s08\":[137,-356,4131],\"s09\":[135,-355,4120],\"s10\":[138,-355,4123],\"s11\":[143,-349,4145],\"s12\":[141,-357,4121],\"s13\":[136,-353,4114],\"s14\":[142,-354,4158],\"s15\":[137,-355,4109],\"s16\":[138,-356,4144],\"s17\":[139,-357,4116],\"s18\":[136,-358,4137],\"s19\":[136,-356,4145],\"s20\":[136,-354,4133],\"s21\":[136,-358,4135],\"s22\":[139,-351,4130],\"s23\":[136,-361,4144],\"s24\":[136,-359,4131]}");
+    //map.put("hello", "world");
+    //map.put("test", "1234");
     printf("\nTrying to post data...\n");
-    ret = http.post("http://httpbin.org/post", map, &inText);
+    //ret = http.post("http://httpbin.org/post", map, &inText);
+    ret = http.post("http://catcher.sensoresmx.info/", map, &inText);
     if (!ret)
     {
       printf("Executed POST successfully - read %d characters\n", strlen(str));