From e659d5c5c577019f2b43586e3ad2ac608f091a06 Mon Sep 17 00:00:00 2001 From: James Hodgkinson Date: Sat, 9 Jan 2021 14:10:44 +1000 Subject: [PATCH] Fixing MQTT Discovery Hostname --- tasmota/support_network.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/support_network.ino b/tasmota/support_network.ino index 56ac7d799..3de3ce10c 100644 --- a/tasmota/support_network.ino +++ b/tasmota/support_network.ino @@ -61,10 +61,10 @@ void MqttDiscoverServer(void) } } #endif // MDNS_HOSTNAME - SettingsUpdateText(SET_MQTT_HOST, MDNS.IP(i).toString().c_str()); + SettingsUpdateText(SET_MQTT_HOST, MDNS.hostname(i).c_str()); Settings.mqtt_port = MDNS.port(i); - AddLog_P(LOG_LEVEL_INFO, PSTR(D_LOG_MDNS D_MQTT_SERVICE_FOUND " %s, " D_IP_ADDRESS " %s, " D_PORT " %d"), MDNS.hostname(i).c_str(), SettingsText(SET_MQTT_HOST), Settings.mqtt_port); + AddLog_P(LOG_LEVEL_INFO, PSTR(D_LOG_MDNS D_MQTT_SERVICE_FOUND " %s," D_PORT " %d"), SettingsText(SET_MQTT_HOST), Settings.mqtt_port); } } #endif // MQTT_HOST_DISCOVERY