ModbusTCPMaster: equals & hashCode method
aDramaQueen opened this issue · 2 comments
aDramaQueen commented
Hi there,
i have a proposal: Could you write your own equals
& hashCode
method for the ModbusTCPMaster
?
If you connect with multiple threads to different devices, then those connections, which just have different unit IDs, can be used multiple times, since it's the same IP address. So I want to collect several masters in one map. For this to work efficiently, I need an "equals" & "hashCode" method.
Thank you
steveohara commented
Pull requests are gratefully received :)
aDramaQueen commented
As you wish my lord. Pull request is already out.