Select your printer model

Parameters are refined by the selected printer.

getCommHistory


Acquires the transmission history of the communication box.

The return value of this API is the result of sending data to the devices.

The processing result of the devices using this API is returned to the callback method.

Syntax

 
- (int)getCommHistory:(id<Epos2GetCommHisotoryDelegate>)delegate;

Parameter

delegate

Specifies an object conforming to the Epos2GetCommHistoryDelegate protocol.

Return value

Error status

Description

EPOS2_SUCCESS

The function was executed successfully.

EPOS2_ERR_PARAM

An invalid parameter was passed.

EPOS2_ERR_CONNECT

Communication failed.

EPOS2_ERR_MEMORY

Memory necessary for processing could not be allocated.

EPOS2_ERR_FAILURE

An unknown error occurred.

EPOS2_ERR_PROCESSING

Could not run the process.

Protocol declaration

 
@protocol Epos2GetCommHistoryDelegate <NSObject>
@required
- (void) onGetCommHistory:(Epos2CommBox *)commBoxObj 
code:(int)code historyList:(NSArray *)historyList;
@end

Parameter

commBoxObj

The callback source object is stored.

code

Error status

Description

EPOS2_SUCCESS

Processed successfully.

EPOS2_CODE_FAILURE

An unknown error occurred.

historyList

The transmission history of the communication box is stored.

(NSDictionary *)historyList[index]

Key

Description

(NSString *)senderId

The member ID of the transmitter is stored.

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

(NSString *)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.

(NSString *)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 iOS

Jump to the top