getId

Declaration

String getId(S7RClientSSjToken token).

Purpose

This method gets String data from the previously received input which is the Substation ES error message Id.

Parameters

Parameter Description
token The S7RClientSSjToken returned by Connect method.

Return

The method returns string object which is the data received with translation and no S7R components that is the value of the "Msg_Id" field.

Example

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