For the complete documentation index, see llms.txt. This page is also available as Markdown.
Page cover

MTCMSMessage Structure

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

MessageType value

applicationID

ApplicationID value

commandID

CommandID value

dataTag

Data tag value

data

Data value

dataLength

Length of data value

Return Value: MTCMSMessage structure

CreateMTCMSMessageFromBytes

This constructor method builds an MTCMSMessage instance with the provided values.

Parameters:

Parameter

Description

messageBytes

Message in byte array value

messageBytesLength

Length of message bytes value

Return Value: MTCMSMessage structure

CreateMTCMSRequestMessage

This constructor method builds an MTCMSMessage instance with the provided values.

Parameters:

Parameter

Description

applicationID

ApplicationID value

commandID

CommandID value

dataTag

Data tag value

data

Data value

dataLength

Length of data value

Return Value: MTCMSMessage structure

ReleaseMTCMSRequestMessage

This method releases the resource allocated by calls to CreateMTCMSMessage and CreateMTCMSRequestMessage methods.

Parameters:

Parameter

Description

message

MTCMSMessage to deallocate.

Return Value: None

Last updated