simple http request (temperature data) from mbed lpc1768 with application board to thingsboard device/dashboard
Fork of http-example by
Diff: source/main-http-socket-reuse.cpp
- Revision:
- 29:5ad8f931e4ff
- Parent:
- 28:9bccd981a393
--- a/source/main-http-socket-reuse.cpp Tue Mar 27 11:13:48 2018 +0200
+++ b/source/main-http-socket-reuse.cpp Tue Mar 27 11:57:33 2018 +0200
@@ -6,8 +6,6 @@
#include "easy-connect.h"
#include "http_request.h"
-Serial pc(USBTX, USBRX);
-
void dump_response(HttpResponse* res) {
printf("Status: %d - %s\n", res->get_status_code(), res->get_status_message().c_str());
@@ -19,7 +17,6 @@
}
int main() {
- pc.baud(115200);
// Connect to the network (see mbed_app.json for the connectivity method used)
NetworkInterface* network = easy_connect(true);
if (!network) {
