mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-23 14:53:07 +05:00
fix: use unique device defaults and MQTT client identifiers
Allow empty hostname and MQTT prefix defaults to use chip-derived names. Use the configured MQTT prefix as the broker client identifier.
This commit is contained in:
1 parent
7e1d0ddff2
commit
d6e1ccb22b
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -715,7 +715,7 @@ static void connect() {
|
||||
.keepAlive = static_cast<uint16_t>(settings.mqtt.interval * 10u),
|
||||
.username = settings.mqtt.user,
|
||||
.password = settings.mqtt.password,
|
||||
.clientId = networkSettings.hostname,
|
||||
.clientId = settings.mqtt.prefix,
|
||||
.willTopic = mqttTopic("status"),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user