Interface PJSerialLineListener


public interface PJSerialLineListener
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    newLine(String aLine)
    Called whenever a complete line has been read from the serial port.
    void
    Called when port is closed / reading stops.
    void
    Called if an exception is thrown in the thread reading the serial port
  • Method Details

    • newLine

      void newLine(String aLine)
      Called whenever a complete line has been read from the serial port. Lines end with either a carriage return or line feed.
      Parameters:
      aLine -
    • portClosed

      void portClosed()
      Called when port is closed / reading stops.
    • readException

      void readException(Exception e)
      Called if an exception is thrown in the thread reading the serial port
      Parameters:
      e - Exception.