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 Link icon

    • SerialTransportLayer Link icon

      public SerialTransportLayer()
  • Method Details Link icon

    • listConnections Link icon

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

      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 Link icon

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