Compute PDU length from MBAP Length field directly.#642
Compute PDU length from MBAP Length field directly.#642TaikiAkita wants to merge 2 commits intostephane:masterfrom xiaojsoft:xiaojsoft
Conversation
For Modbus TCP, the PDU length can be computed directly from the Length field of the header (MBAP).
|
We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, please fill https://forms.gle/5635zjphDo5JEJQSA to get added. Your document will be manually checked by the maintainer. Be patient... |
|
CLA signed. |
|
How does this help with anything though? |
Recently, I tried to use |
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Ji WenCong.
|
The PDU length computes from MBAP Length field shall be validated to ensure that PDU is not too short to be read.
|
We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, please fill https://forms.gle/5635zjphDo5JEJQSA to get added. Your document will be manually checked by the maintainer. Be patient... |
|
The only right way of handling custom requests is via one of the other PRs, #140 or similar. Your method only helps for tcp, and only for some cases, it doesn't sound like code that should be "standard" in the library? |
The only right way is following the specification, not a bunch of hacks. |
For Modbus TCP, the PDU length can be computed directly from the Length field of the header (MBAP).