DHT / my_constants.h /
2413aec 5 years ago
1 contributor
43 lines | 1.361kb
#ifndef _MY_CONSTANTS
#define _MY_CONSTANTS

#define APPVER  "1.0.4"
#define APPNAME "DHT"
const char compile_date[] = APPNAME " v" APPVER " " __DATE__ " " __TIME__; 
const char compile_time[] = __DATE__ " " __TIME__; 

//Global Switches
#define HAS_DHT
#define USE_MQTT
#define USE_OTA

#define LED_BUILTIN 2

/*
#define MAX_RUNNING_TIME 50000 //50s
#define MAX_RUNNING_TIME 100000 //100s
#define MAX_RUNNING_TIME 3600000 //1hour
#define MAX_RUNNING_TIME 7200000 //2hours
#define MAX_RUNNING_TIME 10800000 //3hours
#define MAX_RUNNING_TIME 14400000 //4 hours
#define MAX_RUNNING_TIME 18000000 //5 hours
#define MAX_RUNNING_TIME 21600000 //6 hours
#define MAX_RUNNING_TIME 25200000 //7 hours
#define MAX_RUNNING_TIME 28800000 //8 hours
#define MAX_RUNNING_TIME 32400000 //9 hours
#define MAX_RUNNING_TIME 36000000 //10 hours
#define MAX_RUNNING_TIME 39600000 //11 hours
#define MAX_RUNNING_TIME 43200000 //12 hours
*/
#define MAX_RUNNING_TIME 14400000 //4 hours
#define BLINK_FLASH // Define if you want flash blinking during Wifi connection attempts
//#define UPDATE_PERIOD 30000 // Will cause MQTT reconnect as it is too long
#define UPDATE_PERIOD 20000
long timeSinceLastModeSwitch = 0;
uint32_t countMeasures=0;


//#define LOOP_DELAY 10 //Initial Value
#define LOOP_DELAY 100 //Test Value

#endif //_MY_CONSTANTS