Noobie here and I have a question about Modbus4J.
I was using WireShark packet capture to look at the MODBUS requests being sent by Modbus4J. One of the things I noticed is that Modbus4J opens/closes a TCP connection for each MODBUS request.
Is there a way to set the Modbus4J driver to open a TCP connection once, send all the MODBUS requests, and when all the responses have been received or a timeout occurs close the TCP connection?
OR...Just leave the TCP connection open until a timeout occurs or the Modbus4J driver is shutdown.