Skip to main content

addText

addText​

Adds a character print command to the command buffer.

Parameters​

text​

  • string

Specifies the string to print. Use the following escape sequences for a horizontal tab and line feed.

StringDescription
\tHorizontal tab (HT)
\nLine feed (LF)
\\Backslash

Returns​

Promise<void>

Errors​

Error statusDescription
ERR_PARAMAn invalid parameter was passed.
ERR_TIMEOUTFailed to communicate with the devices within the specified time.
ERR_MEMORYNecessary memory could not be allocated.

Supplementary explanation​

  • To print data other than text after printing text, feed a line or page. A line which does not end with a line feed will be discarded as unfixed data by the next sendData.