getToken

Declaration

S7RClientSSjToken getToken(int key).

Purpose

This method gets the corresponding S7RClientSSjToken using an index number as the key.

Parameters

Parameter Description
key A number (positive integer) representing the S7RClientSSjToken.

Return

The method returns the S7RClientSSjToken.

Errors

  • S7RClientSSjException: If an "ack" event cannot be delivered to Substation ES.

Example

S7RClientSSj conn = new S7RClientSSj();
S7RClientSSjToken token = conn.Connect(url, userid, password);
Int Index = token.get();  //gets index number
Processing
S7RClientSSjToken token2 = conn.getToken(index);