diff --git a/WifiControlSensor/WebServer.ino b/WifiControlSensor/WebServer.ino index ed7cc1e..57fce3a 100644 --- a/WifiControlSensor/WebServer.ino +++ b/WifiControlSensor/WebServer.ino @@ -9,14 +9,31 @@ void handleRoot() { } void handleSetup() { + uint8_t mode; + char *confSsid = ""; + char *confPassword = ""; + char *confHost = ""; + char *mqttServer = ""; + char *mqttUser = ""; + char *mqttPasswd = ""; + int mqttPort = 1883; + + readEEPROM(mode, &confSsid, &confPassword, &confHost, &mqttServer, &mqttUser, &mqttPasswd, mqttPort); + server.send(200, "text/html", "
" - "
" + "
" + "Wifi configuration:" + "
" "
" - "
" - "
" - "
" - "
" - "
" + "
" + "
" + "
" + "MQTT:" + "
" + "
" + "
" + "
" + "
" "
" "
"); }