Clear MQTT topics on boot

This commit is contained in:
iranl
2025-01-05 11:48:24 +01:00
parent 00c96831cd
commit 850f7fcc8a
3 changed files with 34 additions and 8 deletions

View File

@@ -757,6 +757,9 @@ bool NukiNetwork::reconnect()
initTopic(_maintenancePathPrefix, mqtt_topic_reset, "0");
subscribe(_maintenancePathPrefix, mqtt_topic_reset);
initTopic(_maintenancePathPrefix, mqtt_topic_freeheap, "");
initTopic(_maintenancePathPrefix, mqtt_topic_log, "");
initTopic(_maintenancePathPrefix, mqtt_topic_wifi_rssi, "");
if(_preferences->getBool(preference_update_from_mqtt, false))
{