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

Introduce a warning timeout for MQTT topics #697

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

gbeine
Copy link

@gbeine gbeine commented Jul 7, 2024

The feature allows to define a parameter 'timeout' for each topic. The timeout is specified in seconds.

Instead of notifying targets when a message arrives for a topic, mqttwarn will trigger the targets if no message is received on the topic for the specified period of time.

That's the first version of this feature, so any feedback is welcome.

Gerrit Beine added 3 commits July 7, 2024 16:40
The feature allows to define a parameter 'timeout' for each topic.
The timeout is specified in seconds.

Instead of notifying targets when a message arrives for a topic, mqttwarn will trigger the targets if no message is received on the topic for the specified period of time.
Reduced invasiveness
- removed message_to_targets_handler by passing send_to_targets as on_timeout callback
- introduced notify_only_on_timeout switch for allowing notifications for arriving messages, too
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

Successfully merging this pull request may close these issues.

1 participant