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}`); console.log(`Attempting MQTT connection to broker: ${config.mqtt.address}`);
this.client = mqtt.connect(config.mqtt.address, { this.client = mqtt.connect(config.mqtt.address, {
port: config.mqtt.port, port: config.mqtt.port,
protocolId: config.mqtt.protocol,
username: config.mqtt.username, username: config.mqtt.username,
password: config.mqtt.password password: config.mqtt.password
}); });

View File

@ -1,11 +1,10 @@
import { Communicator, State } from './HestiaClasses.js'; import { Communicator, State } from './HestiaClasses.js';
const config = { const config = {
"mqtt": { "mqtt": {
"address": "mqtt://192.168.0.12", "address": "ws://192.168.0.12",
"username": "hestia", "username": "hestia",
"password": "hestia", "password": "hestia",
"port": 1883, "port": 9001,
"protocol": "mqtt",
"topics": { "topics": {
"igniter": "hestia/status/igniter", "igniter": "hestia/status/igniter",
"exhaust": "hestia/status/exhaust", "exhaust": "hestia/status/exhaust",