ESP32-PaxCounter/src/main.h

41 lines
903 B
C
Raw Normal View History

2018-04-05 08:47:17 +02:00
#include "configmanager.h"
#include "lorawan.h"
#include "macsniff.h"
2018-04-02 23:27:38 +02:00
// program version - note: increment version after modifications to configData_t struct!!
2018-06-08 22:41:37 +02:00
#define PROGVERSION "1.3.8" // use max 10 chars here!
2018-03-30 20:51:49 +02:00
#define PROGNAME "PAXCNT"
2018-04-19 15:17:23 +02:00
//--- Declarations ---
2018-03-30 20:51:49 +02:00
2018-04-26 18:07:48 +02:00
enum led_states {
2018-04-20 10:27:13 +02:00
LED_OFF,
LED_ON
2018-04-19 15:17:23 +02:00
};
2018-03-30 20:51:49 +02:00
#if defined(CFG_eu868)
const char lora_datarate[] = {"1211100908077BFSNA"};
#elif defined(CFG_us915)
const char lora_datarate[] = {"100908078CNA121110090807"};
#endif
2018-04-19 15:17:23 +02:00
//--- Prototypes ---
2018-04-06 22:24:54 +02:00
2018-04-19 15:17:23 +02:00
// defined in main.cpp
2018-04-26 18:07:48 +02:00
void reset_counters(void);
void blink_LED(uint16_t set_color, uint16_t set_blinkduration);
void led_loop(void);
2018-04-06 21:34:25 +02:00
2018-03-30 20:51:49 +02:00
2018-04-19 15:17:23 +02:00
// defined in blescan.cpp
2018-05-20 13:50:00 +02:00
#ifdef BLECOUNTER
2018-06-08 22:41:37 +02:00
void start_BLEscan(void);
void stop_BLEscan(void);
#endif
//defined in gpsread.cpp
#ifdef HAS_GPS
2018-06-09 13:18:59 +02:00
void gps_read(void);
2018-06-08 22:41:37 +02:00
void gps_loop(void * pvParameters);
2018-05-20 13:50:00 +02:00
#endif