|
|
|
@ -34,7 +34,7 @@ |
|
|
|
|
#define DHTTYPE DHT22 |
|
|
|
|
#define FIRST_MIN_MAX 300000 // = 5 min
|
|
|
|
|
#define HTML_RELOAD_PAGE_SECS 30 |
|
|
|
|
#define WDT_TIMEOUT 30 |
|
|
|
|
#define WDT_TIMEOUT 300 |
|
|
|
|
|
|
|
|
|
LiquidCrystal_I2C lcd(LCD_I2C_ADDR, LCD_COL, LCD_ROW); |
|
|
|
|
looper sched; |
|
|
|
@ -65,6 +65,7 @@ void setup() |
|
|
|
|
bool ap_reset_last_state; |
|
|
|
|
|
|
|
|
|
esp_task_wdt_init(WDT_TIMEOUT, true); |
|
|
|
|
watchdog_reset(); |
|
|
|
|
esp_task_wdt_add(NULL); |
|
|
|
|
|
|
|
|
|
pinMode(AP_DATA_RESET_PIN, INPUT_PULLDOWN); |
|
|
|
@ -166,7 +167,7 @@ void setup() |
|
|
|
|
sched.addJob(show_time, KRATE_TIME); |
|
|
|
|
sched.addJob(check_reset_ap_data, KRATE_RESET_AP_DATA); |
|
|
|
|
sched.addJob(check_datetime, KRATE_CHECK_DATETIME); |
|
|
|
|
sched.addJob(watchdog_reset, WDT_TIMEOUT / 3); |
|
|
|
|
sched.addJob(watchdog_reset, WDT_TIMEOUT / 10); |
|
|
|
|
|
|
|
|
|
get_sensor_data(); |
|
|
|
|
temp[MIN] = temp[ACT]; |
|
|
|
|