|
|
|
@ -8,6 +8,8 @@
|
|
|
|
|
#include "random.cpp"
|
|
|
|
|
#include "gps.h"
|
|
|
|
|
#include "peripheral.h"
|
|
|
|
|
#include "storage.h"
|
|
|
|
|
#include "power.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void setup() {
|
|
|
|
@ -21,10 +23,10 @@ void setup() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gps_begin();
|
|
|
|
|
TinyGPSPlus gps_data = gps_location();
|
|
|
|
|
TinyGPSPlus gps_data = gps_info();
|
|
|
|
|
gps_end();
|
|
|
|
|
|
|
|
|
|
Serial.print("[main] Location: ("); Serial.print(loc.lat()); Serial.print(", "); Serial.print(loc.lng()); Serial.println(")");
|
|
|
|
|
Serial.print("[main] Location: ("); Serial.print(gps_data.location.lat()); Serial.print(", "); Serial.print(gps_data.location.lng()); Serial.println(")");
|
|
|
|
|
|
|
|
|
|
uint32_t id = random_get();
|
|
|
|
|
|
|
|
|
@ -45,7 +47,7 @@ void setup() {
|
|
|
|
|
gps_data.time.minute(),
|
|
|
|
|
gps_data.time.second(),
|
|
|
|
|
gps_data.location.lat(),
|
|
|
|
|
gps_data.location.lng(),
|
|
|
|
|
gps_data.location.lng()
|
|
|
|
|
);
|
|
|
|
|
store_debug(debug_message, chars);
|
|
|
|
|
store_close();
|
|
|
|
|