-
Notifications
You must be signed in to change notification settings - Fork 122
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
How to convert tokio_modbus::Request to bytes? #201
Comments
Please describe your use case. |
In my case, there is an endpoint that needs to add a data header to the modbus data and send it to it, which needs to be encapsulated using the modbus request data. |
We currently don't expose the low-level encoding/decoding of Modbus protocol messages at the API. Implementing the public |
Oh, I known. Is there any other way to get modbus data? Or |
This would require to extract the lower level code, preferably as a standalone crate: #22 |
The
tokio_modbus::Request
hasTryFrom<Bytes>
function, how to convert from Request to Bytes? just likeimpl into<Bytes> for tokio_modbus::Request
.The text was updated successfully, but these errors were encountered: