Home  Contents

mtd16.new

Mtd16 Core4 Lua Commands

SYNOPSIS

msg = mtd16.new([msgCode])

DESCRIPTION

Creates a new message buffer suitable for encoding a MTD16 message.

The optional argument msgCode will initally add a message header with the given code, just as if mtd16:appendMessageCode() has been called. If msgCode is not a number, it is looked up in the table mtd16.lutTag to get its numerical value.

RETURN VALUE

A new message buffer instance.

ERRORS

Raises an error if msgCode could not be converted to a number by looking it up in mtd16.lutTag.

SEE ALSO