Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to configure publish options in MQTT output plugin #264

Open
tbarthelet opened this issue Nov 4, 2020 · 3 comments
Open

Comments

@tbarthelet
Copy link

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.

@otisg
Copy link
Member

otisg commented Nov 4, 2020

Any chance you can submit the PR, @tbarthelet ?

@tbarthelet
Copy link
Author

OK, I'll double check for a working example and submit a PR.

@adnanrahic
Copy link
Contributor

Thanks a lot @tbarthelet ! Feel free to add me as a reviewer. I'll check it out ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants