Usage example, Xively with wolfSSL
Dependencies: EthernetInterface HTTPClient SDFileSystem mbed-rtos mbed wolfSSL
Fork of SimpleXively by
Diff: xively.cpp
- Revision:
- 2:74161080023f
- Parent:
- 0:a6ee4ada0d57
--- a/xively.cpp Sat Feb 07 19:29:59 2015 +0000 +++ b/xively.cpp Tue Jul 21 23:16:48 2015 +0000 @@ -48,7 +48,8 @@ sprintf(header, "X-ApiKey: %s\r\n", api_key) ; http.setHeader(header) ; - + http.dumpReqHeader(true) ; + http.dumpResHeader(true) ; for(i=0; ; i++) { printf("<<<< %d >>>>\n", i) ; sprintf(uri, "%s/%s.json", XI_API, feed_id) ; @@ -60,7 +61,7 @@ ret = http.put(uri, outText, &inText) ; if (!ret) { - printf("== PUT - read %d ==\n", strlen(buff)); + printf("\n== HTTP PUT: OK\n\n"); if(strlen(buff)) printf("Result: %s\n", buff); } else {