Skip to content
Snippets Groups Projects
Commit 09691055 authored by Jauhar Arifin's avatar Jauhar Arifin
Browse files

send post request to server

parent 2b387afb
No related merge requests found
......@@ -54,5 +54,8 @@ void loop() {
if (seismoMag > 2 && loopNumber - lastSeismoDetected > 10000) {
lastSeismoDetected = loopNumber;
// detected
// send post to http://jauhararifin.cf:8888/api/earthquakes
// header : content-type = application/x-www-form-urlencoded
// data = "lat=1&long=1&date=2016-12-06 PM 22:03:36.000Z&strength=" + seismoMag
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment