fix
This commit is contained in:
@ -22,7 +22,7 @@ let heartbeatTimer = setInterval(() => {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
let mqttClient = Mqtt.connect(this.options.broker)
|
let mqttClient = Mqtt.connect(config.dict.brokerUrl)
|
||||||
mqttClient.on('offline', () => { log.warn("MQTT client is offline") })
|
mqttClient.on('offline', () => { log.warn("MQTT client is offline") })
|
||||||
mqttClient.on('reconnect', () => { log.warn("MQTT client is reconnecting") })
|
mqttClient.on('reconnect', () => { log.warn("MQTT client is reconnecting") })
|
||||||
mqttClient.on('close', () => { log.warn("MQTT connection closed") })
|
mqttClient.on('close', () => { log.warn("MQTT connection closed") })
|
||||||
|
Reference in New Issue
Block a user