Added configuration parameter for reload web page.

master
Holger Wirtz 4 years ago
parent 9a3f2c151d
commit ccb5564270
  1. 5
      WLAN_Thermometer.ino

@ -31,6 +31,7 @@
#define CFG_PORTAL_TIMEOUT 90
#define DHTTYPE DHT22
#define FIRST_MIN_MAX 300000 // = 5 min
#define HTML_RELOAD_PAGE_SECS 30
LiquidCrystal_I2C lcd(LCD_I2C_ADDR, LCD_COL, LCD_ROW);
looper sched;
@ -203,7 +204,9 @@ void loop()
client.println("<html>\n");
client.println("<head>\n");
client.println("<title>Temperatur Kirche Gartenstadt Staaken</title>\n");
client.println("<meta http-equiv=\"refresh\" content=\"5\">\n");
client.print("<meta http-equiv=\"refresh\" content=\"");
client.print(HTML_RELOAD_PAGE_SECS,DEC);
client.println("5\">\n");
client.println("</head>\n");
client.println("<body>\n");
client.println("<center>\n");

Loading…
Cancel
Save