public class TcpConnectionBuilder extends ConnectionBuilder<TcpConnectionBuilder>
Modifier and Type | Class and Description |
---|---|
class |
TcpConnectionBuilder.TcpSettingsImpl |
ConnectionBuilder.SettingsImpl
Constructor and Description |
---|
TcpConnectionBuilder(java.net.InetAddress inetAddress)
Construct a
TcpConnectionBuilder with client ID 1, logical device address 16 and a default TCP port 4059. |
Modifier and Type | Method and Description |
---|---|
DlmsConnection |
buildLnConnection()
Builds a new DLMS/COSEM LN Connection, which is connected to the remote meter.
|
DlmsConnection |
buildSnConnection()
Builds a new DLMS/COSEM SN Connection, which is connected to the remote meter.
|
TcpConnectionBuilder |
setInetAddress(java.net.InetAddress inetAddress) |
TcpConnectionBuilder |
setTcpPort(int tcpPort) |
TcpConnectionBuilder |
useHldc() |
TcpConnectionBuilder |
useWrapper() |
self, setAuthentication, setChallengeLength, setClientId, setDeviceId, setLogicalDeviceId, setManufactureId, setPhysicalDeviceAddress, setResponseTimeout, setSystemTitle
public TcpConnectionBuilder(java.net.InetAddress inetAddress)
TcpConnectionBuilder
with client ID 1, logical device address 16 and a default TCP port 4059.inetAddress
- the Internet address of the remote meter.public TcpConnectionBuilder setInetAddress(java.net.InetAddress inetAddress)
public TcpConnectionBuilder setTcpPort(int tcpPort)
public TcpConnectionBuilder useHldc()
public TcpConnectionBuilder useWrapper()
public DlmsConnection buildLnConnection() throws java.io.IOException
ConnectionBuilder
buildLnConnection
in class ConnectionBuilder<TcpConnectionBuilder>
java.io.IOException
- if an error occurs, while connecting to the meter.public DlmsConnection buildSnConnection() throws java.io.IOException
ConnectionBuilder
buildSnConnection
in class ConnectionBuilder<TcpConnectionBuilder>
java.io.IOException
- if an error occurs, while connecting to the meter.