java.lang.Object
com.marginallyclever.communications.transport.serial.SerialTransportLayer
All Implemented Interfaces:
TransportLayer

public class SerialTransportLayer extends Object implements TransportLayer
Lists available serial connections and opens a connection of that type
  • Constructor Details

    • SerialTransportLayer

      public SerialTransportLayer()
  • Method Details

    • listConnections

      public String[] listConnections()
      find all available serial ports
      Returns:
      a list of port names
    • openConnection

      public SessionLayer openConnection(String connectionName)
      Description copied from interface: TransportLayer
      opens a connection
      Specified by:
      openConnection in interface TransportLayer
      Parameters:
      connectionName - where to connect
      Returns:
      serialConnection if connection successful. null on failure.
    • getTransportLayerPanel

      public TransportLayerPanel getTransportLayerPanel()
      Specified by:
      getTransportLayerPanel in interface TransportLayer
      Returns:
      a panel with the gui options for this transport layer