From 0834facb54e0aee2ab4904598f2174e98817774a Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Thu, 28 Nov 2024 16:14:19 -0500 Subject: [PATCH] Remove protocol, revert to WS --- src/assets/HestiaClasses.js | 1 - src/assets/hestia.js | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/assets/HestiaClasses.js b/src/assets/HestiaClasses.js index d319780..027d063 100644 --- a/src/assets/HestiaClasses.js +++ b/src/assets/HestiaClasses.js @@ -75,7 +75,6 @@ export class Communicator { console.log(`Attempting MQTT connection to broker: ${config.mqtt.address}`); this.client = mqtt.connect(config.mqtt.address, { port: config.mqtt.port, - protocolId: config.mqtt.protocol, username: config.mqtt.username, password: config.mqtt.password }); diff --git a/src/assets/hestia.js b/src/assets/hestia.js index 2c66cf8..072a5d4 100644 --- a/src/assets/hestia.js +++ b/src/assets/hestia.js @@ -1,11 +1,10 @@ import { Communicator, State } from './HestiaClasses.js'; const config = { "mqtt": { - "address": "mqtt://192.168.0.12", + "address": "ws://192.168.0.12", "username": "hestia", "password": "hestia", - "port": 1883, - "protocol": "mqtt", + "port": 9001, "topics": { "igniter": "hestia/status/igniter", "exhaust": "hestia/status/exhaust",