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

[Feature Request] Filter retained messages #81

Open
richcrabtree opened this issue Dec 12, 2019 · 0 comments
Open

[Feature Request] Filter retained messages #81

richcrabtree opened this issue Dec 12, 2019 · 0 comments

Comments

@richcrabtree
Copy link

I would like to be able to filter out retained messages. As it is now I must publish to a separate non-retained topic for topics subscribed by mqttclpro. If I do subscribe to a topic that has a retained message, the result is the rule firing each time mqttclpro reconnects to the broker.

I believe the broker informs the client if the message on a particular topic is the retained value or is a new value as evidenced by the msg.retain var in node.red, which is set to true when the initial retained message is delivered and is undefined otherwise. This would be better addressed in mqttclpro by offering an additional option in the place where you set up the vars and filters to block retained messages. Could be a simple checkbox. Alternately the retained status as well as other metadata could be passed in an additional var.

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

1 participant