New MQTT config
This commit is contained in:
parent
c351ec3554
commit
53d9aaf14b
@ -72,7 +72,7 @@ export class Communicator {
|
|||||||
|
|
||||||
init(state, config) {
|
init(state, config) {
|
||||||
// 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}`);
|
||||||
this.client = mqtt.connect(config.mqtt.address, {
|
this.client = mqtt.connect(config.mqtt.address, {
|
||||||
port: config.mqtt.port
|
port: config.mqtt.port
|
||||||
});
|
});
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Communicator, State } from './HestiaClasses.js';
|
import { Communicator, State } from './HestiaClasses.js';
|
||||||
const config = {
|
const config = {
|
||||||
"mqtt": {
|
"mqtt": {
|
||||||
"address": "mqtt://mqtt.vfsh.me",
|
"address": "wss://mqtt.vfsh.me",
|
||||||
"username": "hestia",
|
"username": "hestia",
|
||||||
"password": "hestia",
|
"password": "hestia",
|
||||||
"port": 443,
|
"port": 443,
|
||||||
|
Loading…
Reference in New Issue
Block a user