Select your printer model

Parameters are refined by the selected printer.

disconnect


Ends communication with the POS keyboard.

Syntax

 
- (int) disconnect;

Return value

The result of the API is returned.

Error status

Description

EPOS2_SUCCESS

The function was executed successfully.

EPOS2_ERR_ILLEGAL

Tried to end communication where it had not been established.

EPOS2_ERR_MEMORY

Necessary memory could not be allocated.

EPOS2_ERR_FAILURE

An unknown error occurred.

EPOS2_ERR_PROCESSING

Could not run the process.

EPOS2_ERR_DISCONNECT

Failed to disconnect the device.

Tried to terminate communication with a printer during reconnection process.

Supplementary explanation

  • If disconnect is conducted during an application background transition event process, wait until disconnect completes.
  • When using multi-threading to connect to multiple printers or peripheral devices, this API and connect cannot be started for other printers or peripheral devices until this API finishes processing. Start the next process after this API finishes processing.
 

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