Skip to content

Commit

Permalink
Merge pull request #875 from ctron/feature/fix_mqtt_1
Browse files Browse the repository at this point in the history
Fix receiving of MQTT commands
  • Loading branch information
relu91 authored Nov 30, 2022
2 parents 96311ed + a8b50ae commit 301dc61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/binding-mqtt/src/mqtt-broker-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default class MqttBrokerServer implements ProtocolServer {
}

// connect incoming messages to Thing
this.broker.on("message", this.handleMessage);
this.broker.on("message", this.handleMessage.bind(this));

this.broker.publish(name, JSON.stringify(thing.getThingDescription()), { retain: true });
}
Expand Down

0 comments on commit 301dc61

Please sign in to comment.