Package | Description |
---|---|
com.digi.wva | |
com.digi.wva.async |
Callbacks on UI thread
|
Modifier and Type | Method and Description |
---|---|
WVA |
WVA.clearBasicAuth()
Clears any previously-set basic authentication for HTTP or HTTPS requests.
|
WVA |
WVA.setHttpPort(int port)
Sets the port on the physical WVA hardware that this WVA instance will use for
HTTP requests.
|
WVA |
WVA.setHttpsPort(int port)
Sets the port on the physical WVA hardware that this WVA instance will use for
HTTPS requests.
|
WVA |
WVA.useBasicAuth(String username,
String password)
Sets the basic authentication credentials (username and password) to be used
when interacting with the WVA over HTTP or HTTPS.
|
WVA |
WVA.useSecureHttp(boolean secure)
Sets whether HTTP communication with the WVA should be done through HTTP or HTTPS.
|
Modifier and Type | Method and Description |
---|---|
void |
EventChannelStateListener.onConnected(WVA device)
Callback triggered when the
EventChannel 's
socket has been successfully created (or, if the socket already existed,
when the thread has started up). |
void |
EventChannelStateListener.onDone(WVA device)
Callback triggered when the event channel thread has ended.
|
void |
EventChannelStateListener.onError(WVA device,
IOException error)
Callback triggered when the
EventChannel is stopped due to any
IOException which occurs after the event channel socket has been created. |
void |
EventChannelStateListener.onFailedConnection(WVA device,
int port)
Callback is triggered when the EventChannel was unable to make an initial
connection to the device.
|
void |
EventChannelStateListener.onRemoteClose(WVA device,
int port)
Callback triggered when the EventChannel detects that the WVA has closed
its data socket (generally because the web services process
on the device has restarted, or because the device is shutting down)
|
void |
EventChannelStateListener.reconnectAfter(WVA device,
long millis,
int port)
Launch a new thread, and in that thread, sleep the given length of time,
disconnect the data stream and reconnect.
|