#ifndef _MY_CONSTANTS #define _MY_CONSTANTS #define APPVER "1.0.7" #define APPNAME "DHT" #ifdef ARDUINO_ESP8266_WEMOS_D1MINI #define BOARD "LOLIN(WEMOS) D1 R2 & Min" #elif ARDUINO_ESP8266_WEMOS_D1R1 #define BOARD "Wemos D1 R1" #endif //ARDUINO_ESP8266_WEMOS_D1MINI & ARDUINO_ESP8266_WEMOS_ const char compile_date[] = APPNAME " " BOARD" 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