diff --git a/src/assets/HestiaClasses.js b/src/assets/HestiaClasses.js index 1877ba5..bfc7efc 100644 --- a/src/assets/HestiaClasses.js +++ b/src/assets/HestiaClasses.js @@ -74,7 +74,10 @@ export class Communicator { // Connect to the MQTT Broker console.log(`Attempting MQTT connection to broker: ${config.mqtt.address}`); this.client = mqtt.connect(config.mqtt.address, { - port: config.mqtt.port + port: config.mqtt.port, + protocol: config.mqtt.protocol, + username: config.mqtt.username, + password: config.mqtt.password }); const { client } = this; diff --git a/src/assets/hestia.js b/src/assets/hestia.js index bfef93b..2c66cf8 100644 --- a/src/assets/hestia.js +++ b/src/assets/hestia.js @@ -5,6 +5,7 @@ const config = { "username": "hestia", "password": "hestia", "port": 1883, + "protocol": "mqtt", "topics": { "igniter": "hestia/status/igniter", "exhaust": "hestia/status/exhaust",