Menu

#27 Transport not set if TCPTransaction.execute() call connect()

v1.2rc1
closed-fixed
Transport (27)
5
2007-09-15
2005-12-22
Anonymous
No

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();

Discussion

  • Dieter Wimberger

    Logged In: YES
    user_id=36782
    Originator: NO

    Fixed.

     
  • Dieter Wimberger

    • assigned_to: nobody --> wimpi
    • status: open --> closed-fixed
     

Log in to post a comment.