mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
MQTT monitor, set the MQTT clientId to make it easier in the MQTT broker to identify where the connections are coming from
This commit is contained in:
parent
cf2d603e27
commit
1b293f2754
1 changed files with 2 additions and 1 deletions
|
@ -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", () => {
|
||||
|
|
Loading…
Reference in a new issue