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

Fixed TypeHelper #535

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fixed TypeHelper #535

wants to merge 1 commit into from

Conversation

rs-blade
Copy link

@rs-blade rs-blade commented Jul 31, 2024

When writing a double[] via Plc.Write/WriteAsync the data that is sent is malformed.

I added a test and found the cause in TypeHelper.ToByteArray(): There is a hard coded 4 when writing the single buffer. This may lead to errors for other types too (not checked that).

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