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

Option to ignore retained MQTT messages #300

Open
molnarg opened this issue Jan 6, 2023 · 0 comments
Open

Option to ignore retained MQTT messages #300

molnarg opened this issue Jan 6, 2023 · 0 comments

Comments

@molnarg
Copy link

molnarg commented Jan 6, 2023

Is your feature request related to a problem? Please describe.
I'm using a GPIO to trigger a button. I'm using the timed_set_ms to only pull down the otput for a short amount of time to simulate a button push. However, when the service is restarted, the retained messages will be resent from the MQTT broker, and the button is pressed.

Describe the solution you'd like
Either have an option to explicitly ignore incoming retained messages, or just ignore them when timed_set_ms is set. In those scenarios, it seems to me that it'd be undesirable to trigger the interaction on each restart.

Describe alternatives you've considered
I've checked if I can turn off retained message delivery just for this client in the MQTT broker, but Mosquitto doesn't support that. I've also checked whether I can do it on the publishing side, but in the setup I have, I can't do it (Athom Home smart home hub + MQTT Hub app).

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

No branches or pull requests

1 participant