Aktuelle Werte
" +"" +"Sensor | " +"Parameter | " +"Wert |
---|---|---|
"); +index += FPSTR(WEB_PAGE_START_BUTTONS); +index +=F("
From 1dfbec146822c656235c6507d7d8b994ab412d51 Mon Sep 17 00:00:00 2001 From: tom-r
" - "Go to the config page to change settings or update firmware." - "
" - "" - "\n"; - server.send(200, "text/html;charset=UTF-8", index); + server.sendHeader(F("Cache-Control"), F("no-cache, no-store, must-revalidate")); + server.sendHeader(F("Pragma"), F("no-cache")); + server.sendHeader(F("Expires"), F("0")); + + // Enable Pagination (Chunked Transfer) + server.setContentLength(CONTENT_LENGTH_UNKNOWN); + server.send(200, FPSTR(CONTENT_TYPE_TXT_HTML), ""); + RESERVE_STRING (index,XLARGE_STR); + char tmp[50]; + const int last_signal_strength = WiFi.RSSI(); + index = FPSTR(WEB_PAGE_HEAD); + index.replace("{t}", FPSTR(CURRENT_DATA)); + +// Paginate page after ~ 1500 Bytes + server.sendContent(index); + index = emptyString; + index = FPSTR(WEB_PAGE_HEADLINE); + index.replace("{id}", theName); + index.replace("{mac}", WiFi.macAddress()); + index.replace("{fw}", VERSION_STR); + server.sendContent(index); + index = emptyString; + +index +=F("Sensor | " +"Parameter | " +"Wert |
---|---|---|