Remove protocol, revert to WS

This commit is contained in:
Skylar Grant 2024-11-28 16:14:19 -05:00
parent c1a3c61a8f
commit 0834facb54
2 changed files with 2 additions and 4 deletions

View File

@ -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
});

View File

@ -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",