Auto refresh home page
This commit is contained in:
parent
c255862617
commit
d92fe1ce99
@ -1,5 +1,7 @@
|
|||||||
void handleRoot() {
|
void handleRoot() {
|
||||||
server.send(200, "text/html", "<h1>You are connected</h1><br/>"
|
server.send(200, "text/html",
|
||||||
|
"<head><meta http-equiv=\"refresh\" content=\"" + String(SAMPLING_PERIODE_MS / 1000) + "\" ></head>"
|
||||||
|
"<h1>You are connected</h1><br/>"
|
||||||
"Current temperature " + String(temp, 2) + "C<br/>"
|
"Current temperature " + String(temp, 2) + "C<br/>"
|
||||||
"Current pressure " + String(pressure, 2) + "mB<br/>"
|
"Current pressure " + String(pressure, 2) + "mB<br/>"
|
||||||
"MQTT Status :" + (MQTT_isConnected() ? "Connected" : "Disconnected") + "<br/>"
|
"MQTT Status :" + (MQTT_isConnected() ? "Connected" : "Disconnected") + "<br/>"
|
||||||
@ -70,7 +72,7 @@ void handleSave() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
server.send(200, "text/html", "<h1>Configuration Saved</h1><br/>"
|
server.send(200, "text/html", "<h1>Configuration Saved</h1><br/>"
|
||||||
"<a href=\"/reboot\">Reboot</a><br/>");
|
"<a href=\"/reboot\">Reboot</a><br/>");
|
||||||
}
|
}
|
||||||
|
|
||||||
void handleOTA() {
|
void handleOTA() {
|
||||||
|
Loading…
Reference in New Issue
Block a user