MangoAutomation / modbus4j

A high-performance and ease-of-use implementation of the Modbus protocol written in Java. Supports ASCII, RTU, TCP, and UDP transports as slave or master, automatic request partitioning and response data type parsing.
GNU General Public License v3.0
897 stars 370 forks source link

validateResponse,check if the request slaveid equal response slaveid #26

Closed ghost closed 5 years ago

ghost commented 5 years ago

validateResponse,check if the request slaveid equal response slaveid

terrypacker commented 5 years ago

@minghu these diffs are large, it looks like maybe there are some formatting changes in addition to logic changes. Would it be possible to redo this PR with only the required code changes? That would make it much easier for me to review and close. Thanks.