start
Starts a search for printers of the specified device type.
• If you use this API, be sure to use
• You cannot call this API when a printer search is already in progress.
Syntax
public static synchronized void start
Parameter
context :
Set a Context class instance of caller.
(Example: Set the Context acquired by getBaseContext() in Activity.)
deviceType :
Specifies the device type to search for. The following values can be specified.
DevType.TCP
DevType.BLUETOOTH
findOption :
Specifies the setting value when searching for a specific target device.
DevType.TCP
DevType.BLUETOOTH
Exceptions
When processing fails, EpsonIoException is thrown with one of the following error values.
Error Value
IoStatus.ERR_ILLEGAL
IoStatus.ERR_PROCESSING
IoStatus.ERR_PARAM
IoStatus.ERR_MEMORY
IoStatus.ERR_FAILURE
Chapter 5 Command Transmission/Reception
stop (p.112)
(Context context, int deviceType,
String findOption)
throws EpsonIoException
deviceType
Searches for TM devices connected to the network
Searches for Bluetooth devices that have a device class
of Printer or Uncategorized.
deviceType
The broadcast address to search for
"null"
This API was called when a search was already in progress
Could not execute process.
Invalid parameter was passed.
Could not allocate memory.
An unspecified error occurred.
to stop the search.
Description
Setting Value
Description
5
111