Select your printer model

Parameters are refined by the selected printer.

sendData


Sends data to the peripheral device.

Specifies the arbitrary function of the device control program side, and passes JSON data made from a set of the property name and value.

For details, refer to the TM-DT Series Peripheral Device Control Guide.

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

Syntax

 
public void sendData(String methodName, String data) throws Epos2Exception

Parameter

methodName

Specifies the function name to be executed.

data

Specifies the parameter to be passed to the function in JSON string.

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_CONNECT

Communication failed.

ERR_MEMORY

Sufficient memory required for processing could not be allocated.

ERR_FAILURE

An unknown error occurred.

ERR_PROCESSING

Could not run the process.

ERR_ILLEGAL

This API was called while no communication had been started.

 

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