diff --git a/server/monitor-types/mqtt.js b/server/monitor-types/mqtt.js index cff5c93d7..d9aaf964d 100644 --- a/server/monitor-types/mqtt.js +++ b/server/monitor-types/mqtt.js @@ -81,7 +81,8 @@ class MqttMonitorType extends MonitorType { let client = mqtt.connect(mqttUrl, { username, - password + password, + clientId: 'uptime-kuma_' + Math.random().toString(16).substr(2, 8) }); client.on("connect", () => {