Transport not set if TCPTransaction.execute() call connect()
Brought to you by:
wimpi
In the Transaction class the Transport is set only in
setConnection. This means that you must call
MasterTCPConnection.connect() before you assign the
connection to the transaction. However, in the
TCPTransaction.execute() method you check if the
connection is connected, although this reconnection
will never work because then the transport will not be
set. This may be corrected by adding the line above
point 3 in execute():
m_IO = m_Connection.getModbusTransport();
Logged In: YES
user_id=36782
Originator: NO
Fixed.