use unique MQTT client ID. Without this (and multiple running deevices with same ID), they disconnect each other!

This commit is contained in:
CaCO3
2022-10-26 10:25:17 +02:00
parent 158ec65e57
commit 6b47eef4cd

View File

@@ -26,7 +26,9 @@ void ClassFlowMQTT::SetInitialParameter(void)
topicUptime = ""; topicUptime = "";
topicFreeMem = ""; topicFreeMem = "";
clientname = "watermeter";
clientname = "AIOTED-" + getMac();
OldValue = ""; OldValue = "";
flowpostprocessing = NULL; flowpostprocessing = NULL;
user = ""; user = "";