From 6871b0d1c807b327674a2d0ab8ec9bef86a123e4 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Thu, 28 Nov 2024 15:58:45 -0500 Subject: [PATCH] Specify MQTT not WS --- src/assets/HestiaClasses.js | 5 ++++- src/assets/hestia.js | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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",