Select your printer model

Parameters are refined by the selected printer.

addCommand method


Adds the ESC/POS command to the command buffer.

Syntax

 
addCommand(data);

Parameter

data

Value

Description

String

Specifies an ESC/POS command as a string.

Return value

Return value

Object type

Printer object

Printer

HybridPrinter2 object

HybridPrinter2

Exception

Exception

Object type

Parameter " ... " is invalid

Error

Supplementary explanation

  • Refer to the following URL for details of the ESC/POS command.
    https://www.epson-biz.com/pos/reference/
  • Epson ePOS SDK does not check the commands sent using this API. If the commands interfere with Epson ePOS SDK operations, other APIs may work wrongly or status values may become invalid. This API should be used with a full understanding of ESC/POS commands and the receipt printer specifications.
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

Epson ePOS SDK includes patented or patent pending functions. The contents must not be disclosed to third parties.


Epson ePOS SDK for JavaScript

Jump to the top