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

Encode WriteMultipleRegistersRequest using values length #102

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

kevinherron
Copy link
Contributor

Encode the "Byte Count" field of a WriteMultipleRegistersRequest using the length of the values bytes rather than multiplying quantity by 2.

This allows the request to be used with non-standard Modbus implementations e.g. those that use 32-bit registers instead of the standard 16-bit registers.

Encode the "Byte Count" field of a WriteMultipleRegistersRequest using the length of the `values` bytes rather than multiplying `quantity` by 2.

This allows the request to be used with non-standard Modbus implementations e.g. those that use 32-bit registers instead of the standard 16-bit registers.
@kevinherron kevinherron added this to the 2.1.1 milestone Jan 19, 2025
@kevinherron kevinherron requested a review from Copilot January 19, 2025 17:42

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@kevinherron kevinherron merged commit 94eab4d into master Jan 20, 2025
1 check passed
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