getDataContent

Declaration

byte[] getDataContent(S7RClientSSjToken token).

Purpose

This method gets the byte[] data from the previously received data input. It is non-destructive and can be issued multiple times for the same message.

Parameters

Parameter Description
token The S7RClientSSjToken returned by Connect method.

Return

The method returns byte[] object which is the data received without translation. A NULL return means no data and needs to be checked. Data is presented just how Substation ES sends it.

Example

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