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

Interface{} to modbus-compatible slice conversion #85

Open
andreapicaro opened this issue Sep 14, 2022 · 0 comments
Open

Interface{} to modbus-compatible slice conversion #85

andreapicaro opened this issue Sep 14, 2022 · 0 comments

Comments

@andreapicaro
Copy link

Hello,
is there any example of how to convert from an interface{} to a writable slice of bytes respecting modbus type and endianness.
I was able to find the opposite (from byte slice read from modbus to interface{}) in telegraf code. Now I shall implement the opposite API for writing into modbus and all that conversions appears tricky.

Thanks

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

No branches or pull requests

1 participant