Select your printer model

Parameters are refined by the selected printer.

disconnect


Ends communication with the printer.

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_DISCONNECT

Failed to disconnect the device.

Supplementary explanation

  • This API is not executed on the main thread. Execute it on the sub-thread.
  • When operating with multiple printers connected in a multi-threaded manner, this API and connect cannot be executed on other printers until this API has been processed. Please wait for this API to finish before executing it.
 

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