#ifndef MAIN_H
#define MAIN_H

#include <version.h>

extern "C" {
  #include "freertos/FreeRTOS.h"
  #include "freertos/timers.h"
}


//#define MAXREADINGS 224
#define MAXREADINGS 200

#ifdef MAIN
TimerHandle_t mqttReconnectTimer;
TimerHandle_t wifiReconnectTimer;
int bmeReadTime = 10000;
int updateTime = 30000;
struct tm timeinfo;
#else
extern TimerHandle_t mqttReconnectTimer;
extern TimerHandle_t wifiReconnectTimer;
extern int bmeReadTime;
extern int updateTime;
extern struct tm timeinfo;
#endif

void setBMEreadtime(int time);
char * getChipID(void);


#endif

