Update MQTT connection
This commit is contained in:
parent
fe2252a094
commit
c351ec3554
@ -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;
|
||||
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user