Select your printer model

Parameters are refined by the selected printer.

addCommand


Adds a command to the command buffer.

Sends the ESC/POS command.

Syntax

 
public void addCommand(byte[] data) throws Epos2Exception

Parameter

data

Specifies the ESC/POS command.

Specifies the binary data.

Exception

When the process fails, Epos2Exception with one of the following error status occurs.

Error status

Description

ERR_PARAM

An invalid parameter was passed.

ERR_MEMORY

Memory necessary for processing could not be allocated.

ERR_FAILURE

An unknown error occurred.

Supplementary explanation

  • Refer to the following URL for details of the ESC/POS command.
    https://support.epson.net/publist/reference_en/
  • 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 Android

Jump to the top