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)
Deprecated.
Telnet has been deprecated. Use OpenSecureSession() instead.
|
void |
open(java.lang.String address,
java.lang.String username,
java.lang.String password,
int timeoutMs,
RShellConnectionType connectionType)
Used to open an RShell session with the Impinj reader.
|
void |
openSecureSession(java.lang.String address,
java.lang.String username,
java.lang.String password,
int timeoutMs)
Used to open a secure SSH RShell session with the Impinj 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 commandspublic void open(java.lang.String address,
java.lang.String username,
java.lang.String password,
int timeoutMs,
RShellConnectionType connectionType)
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 backconnectionType - the network protocol used to establish an RShell connectionOctaneSdkException - if the connection fails to open@Deprecated
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 openSecureSession(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