public class SerialCommunication extends CommunicationSocket
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SERIAL_COM_NAME |
| Constructor and Description |
|---|
SerialCommunication()
Serial Communication Constructor
|
SerialCommunication(@NonNull String serialComName)
Serial Communication Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeSocket()
Closing the socket, can be called anytime
|
InputStream |
getInputStream()
Get input stream
|
OutputStream |
getOutputStream()
Get output stream
|
close, openpublic static final String DEFAULT_SERIAL_COM_NAME
public SerialCommunication()
public SerialCommunication(@NonNull
@NonNull String serialComName)
serialComName - Name that is looked for when retrieving the socket portpublic void closeSocket()
CommunicationSocketpublic OutputStream getOutputStream()
CommunicationSocketgetOutputStream in class CommunicationSocketpublic InputStream getInputStream()
CommunicationSocketgetInputStream in class CommunicationSocketCopyright © 2024 SiLA Java Developers. All rights reserved.