steveohara / j2mod

Enhanced Modbus library implemented in the Java programming language
Apache License 2.0
265 stars 111 forks source link

Move the useRtuOverTcp flag to constructor #75

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi, How about moving the useRtuOverTcp flag in the ModbusTCPMaster's connect method to its constructor to use all implementations of AbstractModbusMaster in the same manner?

steveohara commented 6 years ago

Makes sense, it's a bit of kludge on the connect method. I've made the change for tonight's snapshot