public class RshellEngine
extends java.lang.Object
Constructor and Description |
---|
RshellEngine() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes an rshell connection to the readers
|
void |
open(java.lang.String address,
java.lang.String username,
java.lang.String password,
int timeoutMs)
Opens an rshell connection to the reader
|
java.lang.String |
send(java.lang.String cmd)
Sends an rshell command to the reader
|
public java.lang.String send(java.lang.String cmd) throws OctaneSdkException
cmd
- the command formatted as a stringOctaneSdkException
- if the command failsfor helpers in parsing rshell commands
public void open(java.lang.String address, java.lang.String username, java.lang.String password, int timeoutMs) throws OctaneSdkException
address
- address or hostname of the readerusername
- the reader username (default is root)password
- the password for the user account (default is impinj)timeoutMs
- a timeout to abort the attempt if no response is heard backOctaneSdkException
- if the connection fails to openpublic void close() throws OctaneSdkException
OctaneSdkException
- if the close attempt fails