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

Add method to return Span<bool> for coils, etc #9

Open
Apollo3zehn opened this issue May 10, 2019 · 2 comments
Open

Add method to return Span<bool> for coils, etc #9

Apollo3zehn opened this issue May 10, 2019 · 2 comments

Comments

@Apollo3zehn
Copy link
Owner

No description provided.

@the-programmer
Copy link

Via https://stackoverflow.com/a/61367679 I found that C# has (quite a while actually) the bitarray class.

If you update the documentation so we get

var coils = client.ReadCoils(1, 0x8000, 255);
var bits = new BitArray(coils.ToArray());

The coils array will be converted to an bitarray by C#

@Apollo3zehn
Copy link
Owner Author

Thank you, I will consider it for the next update!

@Apollo3zehn Apollo3zehn pinned this issue Apr 6, 2022
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

2 participants