These methods allows building CMS messages to be used in communications with MagTek CMS devices.
CreateMTCMSMessage
This constructor method builds an MTCMSMessage instance with the provided values.
MTCMS_API MTCMSMessage* CreateMTCMSMessage(
int messageType,
int applicationID,
int commandID,
int dataTag,
const unsigned char* data,
int dataLength);
Parameters:
Parameter
Description
messageType
Return Value: MTCMSMessage structure
This constructor method builds an MTCMSMessage instance with the provided values.
Parameters:
Return Value: MTCMSMessage structure
This constructor method builds an MTCMSMessage instance with the provided values.
Parameters:
Return Value: MTCMSMessage structure
This method releases the resource allocated by calls to CreateMTCMSMessage and CreateMTCMSRequestMessage methods.
Parameters:
Return Value: None
data
Data value
dataLength
Length of data value
MessageType value
applicationID
ApplicationID value
commandID
CommandID value
dataTag
Data tag value
data
Data value
dataLength
Length of data value
Parameter
Description
messageBytes
Message in byte array value
messageBytesLength
Length of message bytes value
Parameter
Description
applicationID
ApplicationID value
commandID
CommandID value
dataTag
Data tag value
Parameter
Description
message
MTCMSMessage to deallocate.
CreateMTCMSMessageFromBytes
CreateMTCMSRequestMessage
ReleaseMTCMSRequestMessage
MTCMS_API MTCMSMessage* CreateMTCMSMessageFromBytes(
const unsigned char* messageBytes,
int messageBytesLength);
MTCMS_API MTCMSMessage* MTCMSMessage(
int applicationID,
int commandID,
int dataTag,
const unsigned char* data,
int dataLength);