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