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

examples: Add dup filtering to mqtt_relay #3018

Merged
merged 1 commit into from
Aug 9, 2024

Commits on Aug 4, 2024

  1. examples: Add dup filtering to mqtt_relay

    Keep information about the previous value sent.  If it's been 5
    seconds, or new value is different (ignoring keys like snr and
    frequency), then send it.  Otherwise, just don't.  This causes bursts
    of e.g. 4 transmissions to result in one MQTT message, on the theory
    that the 4 transmissions are not actually 4 messags, but a strategy to
    transmit one message more reliably.
    
    Define a new configuration option to enable duplicate filtering, and
    default it to True.
    
    Steal logging config from mqtt_filter.py, and add a configuration
    option DEBUG that if True results in debug logging instead of info.
    gdt committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    e85083f View commit details
    Browse the repository at this point in the history