Callback OnKioDeviceCmdResult(string, int, int, int, Class)

The command result callback function.

Parameters

Name Description
devName string
The device name from the Config Tool.
id int
The command id returned from the function you called to start the operation. This is provided so that you're able to link requests and responses together.
cmd int
The command id called. This is internal, but is guaranteed to be different for each function.
err int
An error code, or 0.
data ClassOrString
When err is 0 or data is an object, the operation was successful. Otherwise, data is an error message, if any. Only the err code need be checked if the operation was Reset, CancelTransaction, or BeginAccept. When successful, and the operation was BeginTransaction, data is an object containing three objects: { Target:{}, Accepted:{}, Dispensed:{} }, each object being a CurrencyItem. When successful, and the operation was EndAccept, data will be an object containing one object: { Accepted:{} }, again, the object being a CurrencyItem.

Remarks

The callback will be fired once per operation in every frame of every browser, unless the frame, based upon it's current URL, does not have the required scripting trust level.