Specify MQTT not WS
This commit is contained in:
parent
dafce39a24
commit
6871b0d1c8
@ -74,7 +74,10 @@ export class Communicator {
|
|||||||
// Connect to the MQTT Broker
|
// Connect to the MQTT Broker
|
||||||
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,
|
||||||
|
protocol: config.mqtt.protocol,
|
||||||
|
username: config.mqtt.username,
|
||||||
|
password: config.mqtt.password
|
||||||
});
|
});
|
||||||
const { client } = this;
|
const { client } = this;
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@ const config = {
|
|||||||
"username": "hestia",
|
"username": "hestia",
|
||||||
"password": "hestia",
|
"password": "hestia",
|
||||||
"port": 1883,
|
"port": 1883,
|
||||||
|
"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