mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-19 12:04:48 -04:00
[MQTT] Try to improve error handling
This commit is contained in:
parent
6272514820
commit
227bbdea2f
2 changed files with 40 additions and 31 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue