Select your printer model

Parameters are refined by the selected printer.

onreceive event


Receives the execution results of a command sent by send method.

Syntax

 
Function(response);

Parameters of callback function

Parameter: response

Object type: Object

response object properties

Property

Description

Object type

success

Execution result of a command

Boolean

code

Error code

String

success

Value

Description

true

Process succeeded.

false

Process failed.

code

Value

Description

'EDSP_NOT_FOUND'

The device was not found.

'EDSP_NOT_OPEN'

Failed to open the device.

'EDSP_INVALID_WINDOW'

An unregistered window was specified.

'EDSP_UNRECOVERABLE'

Unrecoverable error occurred on the connected printer.

'EDSP_CUTTER'

Auto cutter error occurred on the connected printer.

'EDSP_MECHANICAL'

Mechanical error occurred on the connected printer.

'EDSP_COVER_OPEN'

Cover of the connected printer is open.

'EDSP_REC_EMPTY'

Connected printer has run out of paper.

'EDSP_AUTOMATICAL'

Automatic recovery error occurred on the connected printer.

'EDSP_SCHEMA_ERROR'

The XML structure is not correct.

'EX_BADPORT'

An internal communication error with the device occurred.

'EX_TIMEOUT'

A timeout error occurred during communication with the device.

'EX_INVALID_VALUE'

Invalid parameter was detected.

'TooManyRequests'

The number of display data sent to the display has exceeded the allowable limit.

Supplementary explanation

 

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