martin-doyle / node-red-contrib-aedes

MQTT broker for Node-RED based on Aedes
MIT License
62 stars 11 forks source link

Uncomment "publish" event to allow impliment bridge easily. #50

Closed snr-lab closed 2 years ago

snr-lab commented 2 years ago

I understand that you commened broker.on('publish', function(){ ... }); to avoid multiple log message. However this is particularly useful to create a bridge for MQTT 3.1.1. Hence I recomend to uncoment this section.

As an alternative approach you can add an aditional ouput to the Aedes Broker node dedicated to the "publish". I mean two output to a single node. This will make the the node more flexible.

martin-doyle commented 2 years ago

Good idea. I have a look at this topic.

martin-doyle commented 2 years ago

Please check if the new version works for you.

snr-lab commented 2 years ago

@martin-doyle It works perfectly. Thanks for your support.