#raw #include #include #include #include "configuration.h" #end raw tConfigBlock configBlock; const uint32_t MAGIC = 0xC0DE0001; extern ESP8266WebServer webServer; void configServeIndex() { webServer.send(200, "text/html", "" "" " " " ESP8266 Thermometer Configuration Page" " " " " "

ESP8266 Configuration Page

" "
" " " #for $configItem in $configItems #if $configItem.label != "_" " " " " " " #end if #end for " " " " " " "
" " " " " " " "
" " " "
" "
" " " "" ""); #ifdef DEBUG Serial.println("indexHtml request served"); #endif } void configServeGetConfiguration() { String arg; #for $configItem in $configItems #if $configItem.label != "_" arg = webServer.arg("$configItem.key"); Serial.print("$configItem.key"); Serial.println(arg); #end if #end for webServer.send(200, "text/html", "configuration saved"); }