Rs232RemoteConnectorpublic interface RemoteConnector
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Force close a connection when its known to be bad, the connector will try and
establish a new connection.
|
String |
getConnectionName() |
Gets the name of this connector locally (for example rs232-comport)
|
boolean |
isConnected() |
Gets the underlying connection state for this connector.
|
void |
registerConnectionChangeListener(ConnectionChangeListener listener) |
Register for information about connection state
|
void |
registerConnectorListener(RemoteConnectorListener listener) |
register a listener that will receive any messages sent by the menu library
|
void |
sendMenuCommand(MenuCommand msg) |
Sends a command to the menu library running on the embedded hardware.
|
void |
start() |
Starts the communication channel, so it will attempt to connect with the configured device
|
void |
stop() |
Stops the library and attempts to also stop any threads and other resources associated.
|
void start()
void stop()
void sendMenuCommand(MenuCommand msg) throws IOException
msg - the message to send.IOExceptionboolean isConnected()
String getConnectionName()
void registerConnectorListener(RemoteConnectorListener listener)
listener - the listenervoid registerConnectionChangeListener(ConnectionChangeListener listener)
listener - the listenervoid close()
Copyright © 2018. All rights reserved.