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

Indicate which fields in ModbusContext where changed during process_write #18

Merged
merged 3 commits into from
Oct 8, 2023

Conversation

tdittr
Copy link
Contributor

@tdittr tdittr commented Oct 5, 2023

In reference to #16, replacing #17

This allows a user to only run their logic whenever a specific coil or holding changed. Thus eliminating the need to poll the context after every write.

…rite

This allows a user to only run their logic whenever a specific coil or holding changed. Thus eliminating the need to poll the context after every write.
This allows a user to only run their logic whenever a specific coil or holding changed. Thus eliminating the need to poll the context after every write.
@tdittr
Copy link
Contributor Author

tdittr commented Oct 5, 2023

After talking to a college he suggested something even simpler which allows you to do the same thing, but without changing any existing function.

@divi255 divi255 merged commit ab30315 into alttch:master Oct 8, 2023
3 checks passed
@divi255
Copy link
Member

divi255 commented Oct 8, 2023

I found no issues visually, gonna look deeper later. anyway this functionality will be released on crates.io as a new minor so wait some time. you can use the crate git repo until I upload the release.

@tdittr tdittr deleted the context-change-indicator branch October 9, 2023 06:44
@tdittr
Copy link
Contributor Author

tdittr commented Oct 9, 2023

Thanks for the quick response and review!

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.

2 participants