Select your printer model

Parameters are refined by the selected printer.

operate


Sends a JSON string to German fiscal element (TSE).

The processing result of the device using this API is notified to the listener method set by setReceiveEventListener of the GermanyFiscalElement class.

Syntax

 
public void operate(java.lang.String jsonString, int timeout) throws Epos2Exception

Parameter

jsonString

Specifies the JSON string to send to German fiscal element (TSE).

timeout

Specifies the timeout period before completion of command transmission in milliseconds.

Value

Description

Integer from 5000 to 120000

Maximum wait time before an error is returned (in milliseconds).

PARAM_DEFAULT

Specifies the default value (10000).

Exception

When the process fails, Epos2Exception with one of the following error value occurs.

Error status

Description

ERR_PARAM

An invalid parameter was passed.

ERR_ILLEGAL

This API was called while no communication had been started.

ERR_MEMORY

Memory necessary for processing could not be allocated.

ERR_FAILURE

An unknown error occurred.

ERR_PROCESSING

Could not run the process.

Supplementary explanation

  • Immediately after starting the printer, do not execute this API until the LED is lit.
    Execution takes time, and a timeout error may occur.
  • ERR_PROCESSING occurs if this API is executed during printer processing.
    Therefore, execute this API after receiving the processing complete callback.
  • ERR_PARAM is returned if null is specified as the JSON string, or if the size of jsonString to be sent is 64 KByte or more.
 

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 Android

Jump to the top