Select your printer model

Parameters are refined by the selected printer.

getCommHistory


Acquires the transmission history of the communication box.

The error status of this API is the result of sending data to the devices.

The processing result of the devices using this API is notified to the set listener method.

Syntax

 
public void getCommHistory(GetCommHistoryCallback callback) throws Epos2Exception

Parameter

callback

Specifies an object which has a notification target method.

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

Memory necessary for processing could not be allocated.

ERR_FAILURE

An unknown error occurred.

ERR_PROCESSING

Could not run the process.

Listener interface

 
public interface GetCommHistoryCallback extends EventListener

Definition of the listener method

 
void onGetCommHistory(CommBox commBoxObj, int code, ArrayList<HashMap<String, String>> historyList

Parameter

commBoxObj

The callback source object is stored.

code

Error status

Description

SUCCESS

Processed successfully.

CODE_ERR_FAILURE

An unknown error occurred.

historyList

The transmission history of the communication box is stored.

historyList[index]

Key

Description

String senderId

The member ID of the transmitter is stored.

If no member ID was specified when running the connect method, "" (blank character) is set.

String receiverId

The member ID of the receiver is stored.

If data was sent to all the members of the communication box, "" (blank character) is set.

String message

Received data is set.

 

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