Web Interface print DHT info
This commit is contained in:
parent
bdbcfd25d4
commit
4536163cfd
@ -5,13 +5,17 @@ void WebHandleRoot() {
|
|||||||
server.send(200, "text/html",
|
server.send(200, "text/html",
|
||||||
"<head><meta http-equiv=\"refresh\" content=\"" + String(CONFIG_SAMPLING_PERIODE_MS / 1000) + "\" ></head>"
|
"<head><meta http-equiv=\"refresh\" content=\"" + String(CONFIG_SAMPLING_PERIODE_MS / 1000) + "\" ></head>"
|
||||||
"<h1>You are connected to " + String(hostName) + "</h1>"
|
"<h1>You are connected to " + String(hostName) + "</h1>"
|
||||||
#ifdef CONFIG_ENABLE_BMP180
|
|
||||||
"<fieldset>"
|
"<fieldset>"
|
||||||
"<legend>Sensors</legend>"
|
"<legend>Sensors</legend>"
|
||||||
|
#ifdef CONFIG_ENABLE_BMP180
|
||||||
"Temperature " + String(temp, 2) + "C<br/>"
|
"Temperature " + String(temp, 2) + "C<br/>"
|
||||||
"Pressure " + String(pressure, 2) + "mB<br/>"
|
"Pressure " + String(pressure, 2) + "mB<br/>"
|
||||||
"</fieldset>"
|
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_ENABLE_DHT
|
||||||
|
"Temperature DHT " + String(dhtTemp, 0) + "C<br/>"
|
||||||
|
"Humidity DHT " + String(dhtHumidity, 0) + "%<br/>"
|
||||||
|
#endif
|
||||||
|
"</fieldset>"
|
||||||
#ifdef CONFIG_WEB_CONTROLLED_GPIO
|
#ifdef CONFIG_WEB_CONTROLLED_GPIO
|
||||||
"<fieldset>"
|
"<fieldset>"
|
||||||
"<legend>Relay</legend>"
|
"<legend>Relay</legend>"
|
||||||
|
Loading…
Reference in New Issue
Block a user