My LoRaWAN Signal Mapping MSc summer project. This is a copy of the actual repository with personal information removed.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
838 B

#include <Arduino.h>
#include <TinyGPS++.h>
#include "settings.h"
#include "random.h"
// BAD PRACTICE: For some extremely strange reason, the Arduino IDE doesn't pick up random.cpp like it does our other source files - so we've got to explicitly include it here. If we had control over the build process (which we don't), we've use a Makefile here that handled this better.
#include "random.cpp"
#include "gps.h"
void setup() {
Serial.println("[main] Beginning collection sequence.");
TinyGPSLocation loc = gps_location();
Serial.print("[main] Location: ("); Serial.print(; Serial.print(", "); Serial.print(loc.lng()); Serial.println(")");
uint32_t id = random_get();
Serial.print("[main] id: ");
void loop() {