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

Begin making the code generic for any kind of stream. #3

Closed
wants to merge 1 commit into from

Conversation

kinghajj
Copy link
Contributor

There is still more that can be done, but my knowledge of Modbus isn't extensive. For instance, MODBUS_PROTOCOL_TCP is hardcoded, and I assume that a complete generic implementation must provide a way to abstract that, too.

I've also made the API object-oriented by turning functions like read_coils into methods on Context.

Note that I don't think these changes should be pulled immediately; this is more of a request for suggestions on how make the API more reusable.

There is still more that can be done, but my knowledge of Modbus isn't extensive.
For instance, MODBUS_PROTOCOL_TCP is hardcoded, and I assume that a complete
generic implementation must provide a way to abstract that, too.

I've also made the API object-oriented by turning functions like `read_coils` into methods
on `Context`.
@hirschenberger
Copy link
Owner

I'm closing this, but development in the trait-based direction is going on....

@kinghajj kinghajj deleted the generic-read-write branch November 28, 2015 12:04
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.

None yet

2 participants