6 - IDeviceControl
MagTek Universal SDK| For MMS Devices | Programmer’s Manual ( Java )
Page 27
mStatus = status;
mData = null;
}
public Result(StatusCode status, IData data)
{
mStatus = status;
mData = null;
if (data != null)
mData = data.Clone();
}
public StatusCode Status()
{
return mStatus;
}
public IData Data()
{
return mData;
}
}
//Example Usage:
IResult result = deviceControl.sendSync(data);
Log(“result = ” + result.StatusCode());
Log(“result = ” + result.Data().StringValue());
6.11
setDateTime
This function sets the date and time for the device.
boolean IDeviceControl.setDateTime(IData data);
Parameter
Description
data
Byte array or string data to send to the device.
Return Value:
Returns true if successful. Otherwise, returns false.
6.12
setLatch
This function send a command to lock or unlock the card latch. The host can choose to lock the card
during EMV transactions to limit the possibility of the cardholder prematurely removing the card. The
lock can also be enabled while the card is out of the system to block cardholders from inserting a card.
boolean IDeviceControl.setLatch(boolean enableLock);