Menu

Bug in ModbusSerialTransport.close()

phantom
2014-09-18
2016-03-28
  • phantom

    phantom - 2014-09-18

    close() method actually leaves seial device open, making it impossible to use it any more.

    Sibling classes have this bug also.

    Correct code is:

    public void close() throws IOException {
        m_InputStream.close();
        m_OutputStream.close();
    
        m_CommPort.close();
    }
    
     
  • Julie Haugh

    Julie Haugh - 2014-09-27

    Thanks -- I'll take a look at the code and verify that the device can be repeatedly opened and closed with whatever changes I make.

     
  • Olaf Brandt

    Olaf Brandt - 2015-12-01

    Is there a suggestion on a timeline for fixing this?

     
  • Steve

    Steve - 2016-03-28

    This is fixed in v2.0 where the whole serial interface has been re-written to use jSerialComm.
    v2.0 rc1 should be available on Maven Central this week

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.