9 - IDeviceConfiguration
MagTek Universal SDK| For MMS Devices | Programmer’s Manual ( Java )
Page 32
Return Value:
Returns a string value device information.
9.4
getFile
This function sets device configuration information.
int IDeviceConfiguration.getFile(
byte[] fileID,
IConfigurationCallback callback);
Parameter
Description
fileID
Byte array for the file ID. For DynaFlex, use a 4-byte file id.
callback
Name of a class or structure that implements the
Return Value:
Returns 0 if the asynchronous configuration operation started. Otherwise, returns a non 0 value.
9.5
getKeyInfo
This function retrieves key information.
byte[]IDeviceConfiguration.getKeyInfo(
byte keyType,
byte[] data);
Parameter
Description
keyType
Type of key. For DynaFlex, use 0.
data
Key data to be sent to the device. For DynaFlex, this is the 2-byte key slot
number.
Return Value:
Returns an array of bytes containing the key information.
9.6
sendFile
This function sends a file to the device.
int IDeviceConfiguration.sendFile(
byte[] fileID,
byte[] data,
IConfigurationCallback callback);
Parameter
Description
fileID
Byte array for the file ID. For DynaFlex, use a 4-byte file id.
data
File contents to be sent to the device.
callback
Name of a class or structure that implements the