Senses an earthquake with MPU6050 and gets time, coordenates and other details of the event with an Adafruit GPS. All the info is sent to an HTTP server
Dependencies: MPU6050 mbed-http MBed_Adafruit-GPS-Library
Diff: source/main-https.cpp
- Revision:
- 7:5d32909f77de
- Parent:
- 5:42f713b19337
- Child:
- 10:e79a808ebbe8
--- a/source/main-https.cpp Thu Feb 23 14:13:01 2017 +0100
+++ b/source/main-https.cpp Fri Feb 24 11:21:24 2017 +0100
@@ -65,7 +65,7 @@
mbedtls_printf("Headers:\n");
for (size_t ix = 0; ix < res->get_headers_length(); ix++) {
- mbedtls_printf("\t%s: %s\n", res->get_headers_fields()[ix].c_str(), res->get_headers_values()[ix].c_str());
+ mbedtls_printf("\t%s: %s\n", res->get_headers_fields()[ix]->c_str(), res->get_headers_values()[ix]->c_str());
}
mbedtls_printf("\nBody (%d bytes):\n\n%s\n", res->get_body_length(), res->get_body_as_string().c_str());
}
