From c351ec3554fb6a937c5369a8baee69d338399ed7 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Wed, 27 Nov 2024 15:42:55 -0500 Subject: [PATCH] Update MQTT connection --- src/assets/HestiaClasses.js | 3 +-- src/assets/hestia.js | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/assets/HestiaClasses.js b/src/assets/HestiaClasses.js index 59f6600..7b08a96 100644 --- a/src/assets/HestiaClasses.js +++ b/src/assets/HestiaClasses.js @@ -74,8 +74,7 @@ export class Communicator { // Connect to the MQTT Broker console.log(`Attempting MQTT connection to broker: ${config.mqtt.address}, with username: ${config.mqtt.username}`); this.client = mqtt.connect(config.mqtt.address, { - username: config.mqtt.username, - password: config.mqtt.password + port: config.mqtt.port }); const { client } = this; diff --git a/src/assets/hestia.js b/src/assets/hestia.js index ad44adf..b4953d0 100644 --- a/src/assets/hestia.js +++ b/src/assets/hestia.js @@ -1,9 +1,10 @@ import { Communicator, State } from './HestiaClasses.js'; const config = { "mqtt": { - "address": "wss://mqtt.vfsh.me", + "address": "mqtt://mqtt.vfsh.me", "username": "hestia", "password": "hestia", + "port": 443, "topics": { "igniter": "hestia/status/igniter", "exhaust": "hestia/status/exhaust",