text method

ESCPOS text(
  1. String text,
  2. String lang
)

text for thai and vietnamese

The text can be either "th", "vn"

Returns the corresponding ESC POS command

Implementation

ESCPOS text(String text, String lang) {
  if (lang == "th") {
    _data += windows874.encode(text);
  } else {
    _data += viscii.encode(text);
  }
  return this;
}