Fix reset MQTT topics
This commit is contained in:
@@ -723,8 +723,11 @@ bool NukiNetwork::reconnect()
|
|||||||
removeTopic(_maintenancePathPrefix, topic);
|
removeTopic(_maintenancePathPrefix, topic);
|
||||||
removeTopic(mqttLockPath, topic);
|
removeTopic(mqttLockPath, topic);
|
||||||
removeTopic(mqttOpenerPath, topic);
|
removeTopic(mqttOpenerPath, topic);
|
||||||
removeTopic(mqttOldOpenerPath, topic);
|
if (len > 5)
|
||||||
removeTopic(mqttOldOpenerPath2, topic);
|
{
|
||||||
|
removeTopic(mqttOldOpenerPath, topic);
|
||||||
|
removeTopic(mqttOldOpenerPath2, topic);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_preferences->putBool(preference_reset_mqtt_topics, false);
|
_preferences->putBool(preference_reset_mqtt_topics, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user