Select your printer model

Parameters are refined by the selected printer.

deleteDevice method


Discards the device object acquired by createDevice method. The device controlled by the discarded device object will be released and made available for other applications.

Syntax

 
deleteDevice(deviceObject, callback);

Parameter

deviceObject

Value

Description

deviceObject

Specifies the device object to discard.

callback

Specifies a callback function to receive the execution result.

One of the following strings is passed to the first parameter to indicate the result.

String

Description

"OK"

Closed the device successfully.

"DEVICE_NOT_OPEN"

Device is not open.

"DEVICE_CLOSE_ERROR"

Failed to close the device.

"SYSTEM_ERROR"

An unknown error occurred.

 

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