public final class ConnectionInfo extends Object
GatewayClient
can connect to.
For example, you could describe a Zigbee module over a UART connection as follows:
ConnectionInfo ci = new ConnectionInfo(ConnectionType.ZIGBEE_UART, "/dev/ttyUSB0");
Modifier and Type | Class and Description |
---|---|
static class |
ConnectionInfo.ConnectionType
Lists all support connection types.
|
Constructor and Description |
---|
ConnectionInfo(ConnectionInfo.ConnectionType type,
String value)
Creates an object to represent a network interface.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
ConnectionInfo.ConnectionType |
getType()
Get the type of the connection represented by this object.
|
String |
getValue()
Get the value associated with this object.
|
int |
hashCode() |
String |
toString() |
public ConnectionInfo(ConnectionInfo.ConnectionType type, String value)
type
- The type of the network interface.value
- The value used to connect to it; for example, a string representing a UART
or a socket connection.public ConnectionInfo.ConnectionType getType()
public String getValue()
Copyright © 2020. All rights reserved.