Skip to content

Added logic to only push mqtt messages when a change is outside of a range #38

@mitchell-pioneer

Description

@mitchell-pioneer

I added another change whereby mqtt messages are only sent when the value is outside of a range of values. Currently changes are sent if the two values are not equal. In practice, if the value is .0000001 different it will still send it. I added an upper or lower change by a percentage.

I made these src changes

-CSV file has a new column
-New command line switch
-New logic in modbus_task::modbus_publish

I'm testing it now. Let me know if this is something that you want to commit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions