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-http.cpp
- Branch:
- mbed-os-5.10
- Revision:
- 31:66704f6f17c5
- Parent:
- 30:4825e4f38844
--- a/source/main-http.cpp Mon Oct 29 14:34:43 2018 +0800
+++ b/source/main-http.cpp Tue Oct 30 11:07:10 2018 +0800
@@ -5,6 +5,7 @@
#include "mbed.h"
#include "http_request.h"
#include "network-helper.h"
+#include "mbed_mem_trace.h"
void dump_response(HttpResponse* res) {
printf("Status: %d - %s\n", res->get_status_code(), res->get_status_message().c_str());
