getHostId

Declaration

String getHostId(S7RClientSSjToken token).

Purpose

This method gets HostId value from the previously received data input. This is the value that Substation ES stores in the message.

Parameters

Parameter Description
token The S7RClientSSjToken returned by Connect method.

Return

The method returns string value of Host Id field.

Example

S7RClientSSj conn = new S7RClientSSj();
S7RClientSSjToken token = conn.Connect(url, userid, password);
byte[] dataIn = conn.receiveWait(token);
if (dataIn != null) {
  String strHost = conn.getHostId(token);
}
conn.Disconnect(token);