sendNACK
Purpose
This method will send a "nack" event back to the Substation ES based on a indicator in the current input data that the Substation ES wants explicit acknowledgement. The "Correlation Id" of the current input data is copied to the "ack" event. A "nack" means the input data has NOT been processed or persisted and that the resource on the Substation ES should be rolled back(see
conn.sendACK).
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.getDataContent(token);
processing problem
conn.sendNACK(token);
}
conn.Disconnect(token);
Copyright © Cloud Software Group, Inc. All rights reserved.
