SYNOPSIS
text = msg:toText()
DESCRIPTION
Converts the contents of msg into printable text which can be automatically converted back into
a binary message using mtd16.fromText().
RETURN VALUE
A string.
NOTES
To generate human readable text, use mtd16:trace().
EXAMPLE
>
>
>
>
mtd16.lutTag = { Test = 0xF00F, Fnord = 0x3001 }
msg = mtd16.new("Test")
msg:append("Fnord", "xyzzy")
print(msg:toText())
F00F=(3001="xyzzy")
SEE ALSO
#mtd16, mtd16.answerCode, mtd16.fromData, mtd16.fromText, mtd16.isNestedTag, mtd16.lutType, mtd16.new, mtd16.tagCode, mtd16.tagName, mtd16.tagNumber, mtd16.tagType, mtd16:append, mtd16:appendMessageCode, mtd16:contains, mtd16:get, mtd16:getNumber, mtd16:getString, mtd16:isEmpty, mtd16:isValid, mtd16:messageCode, mtd16:nextMessageCode, mtd16:pairs, mtd16:rewind, mtd16:tags, mtd16:toData, mtd16:trace, tostring(mtd16)