disConnect

Declaration

void disConnect(S7RClientSSjToken token) throws IllegalArgumentException.

Purpose

This method terminates the connection to Substation ES and invalidates the token.

Parameters

Parameter Description
token The S7RClientSSjToken returned by Connect method.

Return

Nothing is returned when the disconnection is successful.

Errors

  • IllegalArgumentException: This exception is thrown if there is a problem with the token.

Example

S7RClientSSj conn = new S7RClientSSj();
S7RClientSSjToken token = conn.Connect(url, userid, password);
conn.disConnect(token);