Refresh of webupdater increased.
This commit is contained in:
parent
3e8d65d121
commit
f22ec9b02d
2 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
||||||
#define WIFI_AUTOCONNECT_TIMEOUT_S 60
|
#define WIFI_AUTOCONNECT_TIMEOUT_S 60
|
||||||
#define WIFI_CONFIG_PORTAL_TIMEOUT_S 120
|
#define WIFI_CONFIG_PORTAL_TIMEOUT_S 120
|
||||||
#define UPDATE_SENSOR_INTERVAL_S 300
|
#define UPDATE_SENSOR_INTERVAL_S 300
|
||||||
#define UPDATE_WEBSERVER_INTVERVAL_S 1 // Do not change, bigger values will prevent using webupdater webinterface
|
#define UPDATE_WEBSERVER_INTVERVAL_MS 500 // Values greater than 1000 will negative affect availability of the webinterface
|
||||||
#define DELAY_LOOP_MS 100
|
#define DELAY_LOOP_MS 100
|
||||||
#define POWERSAVING_SLEEP_S 600
|
#define POWERSAVING_SLEEP_S 600
|
||||||
#define EMERGENCY_SLEEP_S 172800 // Sleep for 2 days to recover
|
#define EMERGENCY_SLEEP_S 172800 // Sleep for 2 days to recover
|
||||||
|
|
|
@ -41,7 +41,7 @@ const String wifiName = "oko-weather-" + DEVICE_NAME;
|
||||||
WiFiManager wifiManager;
|
WiFiManager wifiManager;
|
||||||
|
|
||||||
uint8_t fsm_state = FSM_STATE_1;
|
uint8_t fsm_state = FSM_STATE_1;
|
||||||
start_measure_wind
|
|
||||||
uint8_t sensor_cnt = 0;
|
uint8_t sensor_cnt = 0;
|
||||||
|
|
||||||
boolean validData = false;
|
boolean validData = false;
|
||||||
|
@ -338,7 +338,7 @@ void _fsm_loop()
|
||||||
{
|
{
|
||||||
|
|
||||||
#ifdef WEBUPDATER_FEATURE
|
#ifdef WEBUPDATER_FEATURE
|
||||||
if ((update_webserver_cnt + (UPDATE_WEBSERVER_INTVERVAL_S * 1000)) <= millis())
|
if ((update_webserver_cnt + (UPDATE_WEBSERVER_INTVERVAL_MS)) <= millis())
|
||||||
{
|
{
|
||||||
//debug("web updater call");
|
//debug("web updater call");
|
||||||
update_webserver_cnt = millis();
|
update_webserver_cnt = millis();
|
||||||
|
|
Loading…
Reference in a new issue