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.
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);
Copyright © 2020. Cloud Software Group, Inc. All Rights Reserved.