replace meaningless hostname with MQTT topic on main page

This commit is contained in:
Ronald Schaten 2016-03-22 01:01:27 +01:00
parent 0ffb73e4a3
commit 9e65b81cd5

View File

@ -359,7 +359,7 @@ void setup() {
response += "<body>\r\n";
response += "<div style=\"text-align: left; display: inline-block;\">\r\n";
response += "<h1>";
response += wifi_station_get_hostname();
response += mqtt_topic;
response += "</h1>\r\n";
response += "<h3>Sensor Status</h3>\r\n";
response += "<table>\r\n";
@ -367,8 +367,6 @@ void setup() {
response += mqtt_server;
response += ":";
response += mqtt_port;
response += "<tr><td>MQTT Topic</td><td>";
response += mqtt_topic;
if (capability_dht) {
response += "<tr><td>Temperature</td><td>";
response += str_temperature;