sendUnRegistration

Declaration

void sendUnRegistration( S7RClientSSjToken token) throws UnsupportedEncodingException, S7RClientSSjException, IllegalArgumentException.

Purpose

This method sends Substation ES a request to stop sending Trigger data. The application is still responsible for the trigger data in its memory. This can be handled by setting timeout to 1 and then looping on a receiveWait until no more data is returned.

Parameter

Parameter Description
token The S7RClientSSjToken returned by Connect method.

Return

The method does not return any value when registration is successful.

Errors

  • S7RClientSSjException: If registration cannot be done.
  • UnsupportedEncodingException: If the service name does not translate.

Example

S7RClientSSj conn = new S7RClientSSj();
S7RClientSSjToken token = conn.Connect(url, userid, password);
…….(other user code)
conn.sendUnRegistration(token);
conn.setTimeout(1);
While (1){
byte[] dataIn = conn.receiveWait(token);
if (dataIn == null)  break;
Process input data
}
conn.Disconnect(token);