mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 02:30:14 +08:00
[MQTT] Try to improve error handling
This commit is contained in:
@@ -351,7 +351,7 @@ class Monitor extends BeanModel {
|
||||
}
|
||||
} else if (this.type === "mqtt") {
|
||||
try {
|
||||
bean.msg = await mqttAsync(this.url, this.mqttTopic, this.mqttSuccessMessage, {
|
||||
bean.msg = await mqttAsync(this.hostname, this.mqttTopic, this.mqttSuccessMessage, {
|
||||
mqttPort: this.port,
|
||||
mqttUsername: this.mqttUsername,
|
||||
mqttPassword: this.mqttPassword,
|
||||
|
Reference in New Issue
Block a user