fix in mqtt clientId

This commit is contained in:
Wolfgang Hottgenroth
2018-05-16 16:41:03 +02:00
parent 7e78a5724b
commit d4636f550c
3 changed files with 3 additions and 1 deletions

View File

@ -25,6 +25,7 @@ class MqttHandler {
constructor() {
this.mqttBrokerUrl = config.dict.brokerUrl
this.mqttOptions.clientId = 'dispatcher'
if (config.dict.brokerUser && config.dict.brokerPass) {
this.mqttOptions.username = config.dict.brokerUser
this.mqttOptions.password = config.dict.brokerPass