Select your printer model

Parameters are refined by the selected printer.

openCommBox method


Opens the communication box.

The TM-DT software and TM-i firmware create a communication box and add an application as its member.

Syntax

 
openCommBox(boxID, option, callback);

Parameter

boxID

Value

Description

boxID

Specifies the box ID to open.

option

Property

Description

Object type

memberID

Specifies a member ID to identify the application itself in the communication box.

String

callback

Specifies a callback function to receive the open process result.

The commBox object is passed to the first parameter and the following strings is passed to the second parameter to indicate the result.

A sequence number which is same as the return value is passed to the third parameter.

String

Description

"OK"

Communication box opened successfully.

"ALREADY_OPENED"

Communication box is already open.

"MEMBERID_ALREADY_USED"

Specified member ID is already in use.

"BOX_COUNT_OVER"

The number of created communication boxes has exceeded the upper limit.

"BOX_CLIENT_OVER"

The number of members belong to the communication box has exceeded the upper limit.

"PARAMETER_ERROR"

A parameter error occurred.

"SYSTEM_ERROR"

An unknown error occurred.

Return value

Return value

Description

Object type

sq

Process sequence number

String

Supplementary explanation

When the process of the openCommBox method fails, null will be passed to the first parameter.

 

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