* fix #195: used trim() to remove leading and trailing spaces, added maxlength attr to input field

* started to work on #209: added another timer for NTP update after configurable interval (default 12h)
This commit is contained in:
lumapu 2022-08-30 15:35:36 +02:00
parent 4796555fac
commit 2bfb6467e0
9 changed files with 22 additions and 21 deletions

View file

@ -72,12 +72,15 @@
// threshold of minimum power on which the inverter is marked as inactive
#define INACT_PWR_THRESH 3
// default ntp server uri
// default NTP server uri
#define DEF_NTP_SERVER_NAME "pool.ntp.org"
// default ntp server port
// default NTP server port
#define DEF_NTP_PORT 8888
// NTP refresh interval in ms (default 12h)
#define NTP_REFRESH_INTERVAL 12 * 3600 * 1000
// default mqtt interval
#define MQTT_INTERVAL 60