Select your printer model

Parameters are refined by the selected printer.

lock method


Locks the device port. Use this method when, for example, performing MICR control and slip printing sequentially to prevent other processes from interrupting the operation.

The execution result of the lock method is passed to the callback function of onreceive event.

Syntax

 
lock();

Supplementary explanation

After executing the lock method, execute unlock method before closing the application. If the unlock method is not executed, the port cannot be locked for approximately five minutes until the ePOS-Device unlocks it and ERROR_DEVICE_BUSY will be passed to onreceive event during this period.

 

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