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

 
- (int) addCommand:(NSData *)data;

Parameter

data

Specifies the ESC/POS command.

Specifies the binary data.

Return value

Error status

Description

EPOS2_SUCCESS

The function was executed successfully.

EPOS2_ERR_PARAM

An invalid parameter was passed.

EPOS2_ERR_MEMORY

Memory necessary for processing could not be allocated.

EPOS2_ERR_FAILURE

An unknown error occurred.

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 iOS

Jump to the top