Fixing Layer requirements
This commit is contained in:
parent
1128e918a7
commit
b6c20d69c3
@ -91,7 +91,7 @@ export class MQTTLayer implements ICommunicationInterface {
|
||||
constructor(
|
||||
public uri: string,
|
||||
public preTopic: string = hostname(),
|
||||
public qos: 0 | 1 | 2 = 1,
|
||||
public qos: 0 | 1 | 2 = 2,
|
||||
level: LoggerLevel = "info"
|
||||
) {
|
||||
// Make shure we use the http before connecting.
|
||||
@ -106,6 +106,8 @@ export class MQTTLayer implements ICommunicationInterface {
|
||||
this.allowServiceRedundancy = false;
|
||||
this.id = generateId();
|
||||
|
||||
this.receivesOwnMessages = true;
|
||||
|
||||
// Create a Broker and use the provided ID
|
||||
this._client = connect(this.uri);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user