// The mother of all embedded development... #include // std::set for unified array functions #include #include #include // OLED Display #ifdef HAS_DISPLAY #include #endif // GPS #ifdef HAS_GPS #include #endif #ifdef HAS_LORA // LMIC-Arduino LoRaWAN Stack #include #include #endif // LED controls #ifdef HAS_RGB_LED #include #endif #include "rgb_led.h" #include "macsniff.h" #include "main.h" #include "payload.h" extern configData_t cfg; extern char display_line6[], display_line7[]; extern uint64_t uptimecounter; extern int countermode, screensaver, adrmode, lorasf, txpower, rlim; extern uint16_t macs_total, macs_wifi, macs_ble; // MAC counters extern std::set macs; extern hw_timer_t *channelSwitch, *sendCycle; #ifdef HAS_GPS extern gpsStatus_t gps_status; // struct for storing gps data extern TinyGPSPlus gps; // Make TinyGPS++ instance globally availabe #endif // payload encoder #if PAYLOAD_ENCODER == 1 extern TTNplain payload; #elif PAYLOAD_ENCODER == 2 extern TTNpacked payload; #elif PAYLOAD_ENCODER == 3 extern CayenneLPP payload; #else #error "No valid payload converter defined" #endif