113
Chapter 5 Command Transmission/Reception
5
getResult
This API acquires a list of devices that were found by search, up until the point this API was called.
Syntax
public static synchronized final String[] getResult()
throws EpsonIoException
Return value
The list of devices found during search is returned.
Identification information of the found devices is stored as a character string (String type) in the list.
The stored results differ depending on the type of device (deviceType).
Exceptions
When processing fails, EpsonIoException is thrown with one of the following error values.
This API cannot acquire Bluetooth devices that are already open.
deviceType List to Acquire
DevType.TCP List of IP addresses of printers
DevType.BLUETOOTH List of MAC addresses of Bluetooth devices
Error Value Description
IoStatus.ERR_ILLEGAL This API was called when a search was not in progress.
IoStatus.ERR_PROCESSING Could not execute process.
IoStatus.ERR_MEMORY Could not allocate memory.
IoStatus.ERR_FAILURE An unspecified error occurred.