Select your printer model

Parameters are refined by the selected printer.

disconnect


Ends communication with the peripheral device.

Syntax

 
public void disconnect() throws Epos2Exception

Exception

When the process fails, Epos2Exception with one of the following error value occurs.

Error status

Description

ERR_ILLEGAL

Tried to end communication where it had not been established.

ERR_MEMORY

Necessary memory could not be allocated.

ERR_FAILURE

An unknown error occurred.

ERR_PROCESSING

Could not run the process.

ERR_DISCONNECT

Failed to disconnect the device.

Tried to terminate communication with a printer during reconnection process.

Supplementary explanation

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 Android

Jump to the top