mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-09 23:24:07 -08: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
1b293f2754
commit
6bfc58674a
|
@ -82,7 +82,7 @@ class MqttMonitorType extends MonitorType {
|
|||
let client = mqtt.connect(mqttUrl, {
|
||||
username,
|
||||
password,
|
||||
clientId: 'uptime-kuma_' + Math.random().toString(16).substr(2, 8)
|
||||
clientId: "uptime-kuma_" + Math.random().toString(16).substr(2, 8)
|
||||
});
|
||||
|
||||
client.on("connect", () => {
|
||||
|
|
Loading…
Reference in a new issue