Remove protocol, revert to WS
This commit is contained in:
parent
c1a3c61a8f
commit
0834facb54
@ -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
|
||||||
});
|
});
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user