Compare commits

...

2 commits

Author SHA1 Message Date
Kai Lauterbach
7a97677e0d Reduced portal timeout again. 2022-09-14 20:40:08 +02:00
Kai Lauterbach
9abd468fbc Added a separate function to set the windspeed to the webupdater. 2022-09-14 20:24:43 +02:00
3 changed files with 7 additions and 2 deletions

View file

@ -4,7 +4,7 @@
// config general setting and behavior of the weatherstation
#define WIFI_AUTOCONNECT_TIMEOUT_S 60
#define WIFI_CONFIG_PORTAL_TIMEOUT_S 300
#define WIFI_CONFIG_PORTAL_TIMEOUT_S 120
#define UPDATE_SENSOR_INTERVAL_S 300
#define UPDATE_WEBSERVER_INTVERVAL_S 1 // Do not change, bigger values will prevent using webupdater webinterface
#define DELAY_LOOP_MS 100

View file

@ -567,7 +567,7 @@ void _fsm_loop()
}
#ifdef WEBUPDATER_FEATURE
setSensorData(currentSensorData);
sentWindspeed(currentSensorData[SENSOR_WINDSPEED]);
#endif
#endif

View file

@ -79,6 +79,11 @@ void doWebUpdater(void)
//*************************************************************************//
void sentWindspeed(float ws)
{
_webUpdater_sensValues[SENSOR_WINDSPEED] = ws;
}
void setWifiReconnectCnt(uint32_t wrc)
{
_wifi_reconnect_cnt = wrc;