diff --git a/MqttTopics.h b/MqttTopics.h index 24039d8..dce7bf2 100644 --- a/MqttTopics.h +++ b/MqttTopics.h @@ -58,4 +58,5 @@ #define mqtt_topic_log "/maintenance/log" #define mqtt_topic_freeheap "/maintenance/freeHeap" #define mqtt_topic_restart_reason_fw "/maintenance/restartReasonNukiHub" -#define mqtt_topic_restart_reason_esp "/maintenance/restartReasonNukiEsp" \ No newline at end of file +#define mqtt_topic_restart_reason_esp "/maintenance/restartReasonNukiEsp" +#define mqtt_topic_network_device "/maintenance/networkDevice" \ No newline at end of file diff --git a/Network.cpp b/Network.cpp index 1bbfcae..8c87486 100644 --- a/Network.cpp +++ b/Network.cpp @@ -403,6 +403,7 @@ bool Network::reconnect() if(_firstConnect) { _firstConnect = false; + publishString(_maintenancePathPrefix, mqtt_topic_network_device, _device->deviceName().c_str()); for(const auto& it : _initTopics) { _device->mqttPublish(it.first.c_str(), MQTT_QOS_LEVEL, true, it.second.c_str());