public class SerialResource
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
connect()
Establish a serial connection
|
void |
disconnect()
Disconnect from the serial connection
|
java.lang.String |
toString() |
void |
write(byte[] bytes)
Write the given bytes over the serial connection
|
public void connect() throws java.lang.Exception
java.lang.Exception
- If there was a problem when connectingpublic void disconnect()
public void write(byte[] bytes) throws java.io.IOException
bytes
- java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object