Select your printer model

Parameters are refined by the selected printer.

operate


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

The processing result of the devices using this API is returned to the callback method set by setReceiveEventDelegate of the Epos2GermanyFiscalElement class.

Syntax

 
- (int) operate: (NSString *) jsonString
timeout: (long) timeout;

Parameter

jsonString

Specifies the JSON string to be sent to the 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).

EPOS2_PARAM_DEFAULT

Specifies the default value (10000).

Return value

The result of the API is returned.

Error status

Description

EPOS2_SUCCESS

The function was executed successfully.

EPOS2_ERR_PARAM

An invalid parameter was passed.

EPOS2_ERR_ILLEGAL

This API was called while no communication had been started.

EPOS2_ERR_PROCESSING

Could not run the process.

EPOS2_ERR_MEMORY

Memory necessary for processing could not be allocated.

EPOS2_ERR_FAILURE

An unknown error occurred.

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.
  • If this API is executed during the printer processing, EPOS2_ERR_PROCESSING will occur.
    Execute this API after receiving the callback for process completion.
  • If nil is specified in the JSON string, or if the size of the jsonString to be sent is 64 KByte or more, EPOS2_ERR_PARAM is returned as the return value.
 

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 iOS

Jump to the top