Forgot to declare before using
This commit is contained in:
parent
024d5d1058
commit
9f42cc6240
@ -28,7 +28,7 @@ export class Communicator {
|
|||||||
|
|
||||||
init(state) {
|
init(state) {
|
||||||
// Connect to the MQTT Broker
|
// Connect to the MQTT Broker
|
||||||
this.client = mqtt.connect(config.mqtt.address);
|
const this.client = mqtt.connect(config.mqtt.address);
|
||||||
const { client } = this;
|
const { client } = this;
|
||||||
|
|
||||||
client.on('connect', () => {
|
client.on('connect', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user