sendACK
Purpose
This method will send an "ACK" event back to the Substation ES based on an indicator in the current input data that the Substation ES wants explicit acknowledgment. The "Correlation Id" of the current input data is copied to the "ack" event. An "ack" means the input data has been processed or persisted and that the resource on the Substation ES can be released (see
conn.sendNACK).
Example
S7RClientSSj conn = new S7RClientSSj(); S7RClientSSjToken token = conn.Connect(url, userid, password); conn.setAutoAck(token, false); // user will handle ack/nack process conn.setTimeout(token, 10*1000); // set 10 second timeout on gets byte[] dataIn = conn.receiveWait(token); if (dataIn != null) { dataIn = conn.sendData(token); process it - all ok conn.sendACK(token); } conn.Disconnect(token);
Copyright © 2020. Cloud Software Group, Inc. All Rights Reserved.