// The mother of all embedded development... #include // std::set for unified array functions #include #include #include // basics #include "main.h" #include "led.h" #include "macsniff.h" #include "payload.h" extern configData_t cfg; extern char display_line6[], display_line7[]; extern int countermode, screensaver, adrmode, lorasf, txpower, rlim; extern uint8_t channel, DisplayState; extern uint16_t macs_total, macs_wifi, macs_ble; // MAC counters extern std::set macs; extern hw_timer_t *channelSwitch, *sendCycle; extern portMUX_TYPE timerMux; #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