FieldTalk™ Modbus Master .NET Library

MbusRtuOverTcpMasterProtocol Constructor (String, Int16)

Creates new instance and configures the host to connect to

[Visual Basic]
Overloads Public Sub New( _
   ByVal hostName As String, _
   ByVal portNumber As Short _
)
[C#]
public MbusRtuOverTcpMasterProtocol(
   string hostName,
   short portNumber
);

Parameters

hostName
String with IP address or host name (eg "127.0.0.1")
portNumber

Exceptions

Exception Type Condition
OutOfMemoryException Creation of class failed

See Also

MbusRtuOverTcpMasterProtocol Class | FieldTalk Namespace | MbusRtuOverTcpMasterProtocol Constructor Overload List