Update MQTT connection

This commit is contained in:
Skylar Grant 2024-11-27 15:42:55 -05:00
parent fe2252a094
commit c351ec3554
2 changed files with 3 additions and 3 deletions

View File

@ -74,8 +74,7 @@ export class Communicator {
// Connect to the MQTT Broker // Connect to the MQTT Broker
console.log(`Attempting MQTT connection to broker: ${config.mqtt.address}, with username: ${config.mqtt.username}`); console.log(`Attempting MQTT connection to broker: ${config.mqtt.address}, with username: ${config.mqtt.username}`);
this.client = mqtt.connect(config.mqtt.address, { this.client = mqtt.connect(config.mqtt.address, {
username: config.mqtt.username, port: config.mqtt.port
password: config.mqtt.password
}); });
const { client } = this; const { client } = this;

View File

@ -1,9 +1,10 @@
import { Communicator, State } from './HestiaClasses.js'; import { Communicator, State } from './HestiaClasses.js';
const config = { const config = {
"mqtt": { "mqtt": {
"address": "wss://mqtt.vfsh.me", "address": "mqtt://mqtt.vfsh.me",
"username": "hestia", "username": "hestia",
"password": "hestia", "password": "hestia",
"port": 443,
"topics": { "topics": {
"igniter": "hestia/status/igniter", "igniter": "hestia/status/igniter",
"exhaust": "hestia/status/exhaust", "exhaust": "hestia/status/exhaust",