replace meaningless hostname with MQTT topic on main page
This commit is contained in:
parent
0ffb73e4a3
commit
9e65b81cd5
@ -359,7 +359,7 @@ void setup() {
|
|||||||
response += "<body>\r\n";
|
response += "<body>\r\n";
|
||||||
response += "<div style=\"text-align: left; display: inline-block;\">\r\n";
|
response += "<div style=\"text-align: left; display: inline-block;\">\r\n";
|
||||||
response += "<h1>";
|
response += "<h1>";
|
||||||
response += wifi_station_get_hostname();
|
response += mqtt_topic;
|
||||||
response += "</h1>\r\n";
|
response += "</h1>\r\n";
|
||||||
response += "<h3>Sensor Status</h3>\r\n";
|
response += "<h3>Sensor Status</h3>\r\n";
|
||||||
response += "<table>\r\n";
|
response += "<table>\r\n";
|
||||||
@ -367,8 +367,6 @@ void setup() {
|
|||||||
response += mqtt_server;
|
response += mqtt_server;
|
||||||
response += ":";
|
response += ":";
|
||||||
response += mqtt_port;
|
response += mqtt_port;
|
||||||
response += "<tr><td>MQTT Topic</td><td>";
|
|
||||||
response += mqtt_topic;
|
|
||||||
if (capability_dht) {
|
if (capability_dht) {
|
||||||
response += "<tr><td>Temperature</td><td>";
|
response += "<tr><td>Temperature</td><td>";
|
||||||
response += str_temperature;
|
response += str_temperature;
|
||||||
|
Loading…
Reference in New Issue
Block a user