Class SerialTransportLayer
java.lang.Object
com.marginallyclever.communications.transport.serial.SerialTransportLayer
- All Implemented Interfaces:
TransportLayer
Lists available serial connections and opens a connection of that type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
find all available serial portsopenConnection
(String connectionName) opens a connection
-
Constructor Details
-
SerialTransportLayer
public SerialTransportLayer()
-
-
Method Details
-
listConnections
find all available serial ports- Returns:
- a list of port names
-
openConnection
Description copied from interface:TransportLayer
opens a connection- Specified by:
openConnection
in interfaceTransportLayer
- Parameters:
connectionName
- where to connect- Returns:
serialConnection
if connection successful.null
on failure.
-
getTransportLayerPanel
- Specified by:
getTransportLayerPanel
in interfaceTransportLayer
- Returns:
- a panel with the gui options for this transport layer
-