Hi,
Similarly to issue #172 it would be very useful to be able to set publish options when publishing a message to mqtt.
For example, it allows to define QoS or if message should be retained.
See https://www.npmjs.com/package/mqtt#publish for all details.
This could be done by using this.client.publish(topic, msg, this.config.publishOptions) instead of this.client.publish(topic, msg) in mqtt.js and setting options in the mqtt output module accordingly.
Hi,
Similarly to issue #172 it would be very useful to be able to set publish options when publishing a message to mqtt.
For example, it allows to define QoS or if message should be retained.
See https://www.npmjs.com/package/mqtt#publish for all details.
This could be done by using
this.client.publish(topic, msg, this.config.publishOptions)instead ofthis.client.publish(topic, msg)in mqtt.js and setting options in the mqtt output module accordingly.