diff --git a/OpenCO2_Sensor.ino b/OpenCO2_Sensor.ino index 144db85..25b2dcb 100644 --- a/OpenCO2_Sensor.ino +++ b/OpenCO2_Sensor.ino @@ -10,7 +10,7 @@ - WiFiManager: https://github.com/tzapu/WiFiManager - ArduinoMqttClient (if MQTT is defined) */ -#define VERSION "v5.0" +#define VERSION "v5.1" #define HEIGHT_ABOVE_SEA_LEVEL 50 // Berlin #define TZ_DATA "CET-1CEST,M3.5.0,M10.5.0/3" // Europe/Berlin time zone from https://github.com/nayarsystems/posix_tz_db/blob/master/zones.csv @@ -166,7 +166,10 @@ String getHexColors(uint16_t co2) { return String(hexString); } -String GenerateHtml() { +void HandleRootClient() { + server.setContentLength(CONTENT_LENGTH_UNKNOWN); + server.send(200, "text/html", ""); + String message = "\n \n"; message += "
\n