EasyManuals Logo

Citizen CL-E331 Programming Manual

Citizen CL-E331
95 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #17 background imageLoading...
Page #17 background image
CITIZEN Android Label Print SDK Programming Manual
17
2.2.3 connect method
Syntax
1) int connect (int connectType, String address)
2) int connect (int connectType, String address, int port)
3) int connect (int connectType, String address, int port, int timeout)
4) int connect (int connectType, UsbDevice device)
Parameters
Parameter
[IN/OUT]
Description
Setting range
connectType
[IN]
Interface type
CLS_PORT_WiFi
CLS_PORT_Bluetooth
CLS_PORT_Bluetooth_Insecure
CLS_PORT_USB
address
[IN]
IP address to connect or
Bluetooth device address or
Bluetooth device name
WiFi: 0.0.0.0255.255.255.255
Bluetooth:
00:00:00:00:00:00
FF:FF:FF:FF:FF:FF
Device name (Automatic detection)
device
[IN]
UsbDevice class
(android.hardware.usb.UsbDevice)
null: Automatic detection
UsbDevice: Any USB device
port
[IN]
Port number
timeout
[IN]
Timeout (msec)
Description
This method is to connect to a printer. Specify an interface type and address.
The Bluetooth device address must be written in upper case.
When the Bluetooth device name is specified, it looks for a paired device which matches up.
When the Bluetooth device name is not specified, it looks for a paired/supported device automatically.
In case of using the Insecure Bluetooth connection after Android 2.3.3, use
CLS_PORT_Bluetooth_Insecure as connectType.
In case of USB device, the setContext method must be called beforehand.
The port number is effective only when CLS_PORT_WiFi is specified as connectType. The default
port number is 9100.
The timeout is to specify the maximum amount of time (in millisecond) to wait while attempting to
connect to the printer. This is not effective when CLS_PORT_USB is specified as connectType. The
default values are 4000 ms when WiFi, 8000 ms when Bluetooth.
When connecting, this method checks if the printer model is supported.
When the connection is no longer used, the disconnect method must be called. The next connection
will be failed otherwise.
Note
When connecting via USB for the first time, a dialog message for user permission pops up. Press OK
to continue.
A dialog message for user permission (example).

Table of Contents

Other manuals for Citizen CL-E331

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Citizen CL-E331 and is the answer not in the manual?

Citizen CL-E331 Specifications

General IconGeneral
Product colorBlack
Print technologyThermal transfer
Printing media thickness63.5 - 190 µm
Sustainability complianceYes
Sustainability certificatesCE, Federal Communications Commission (FCC), TUV, UL ECOLOGO, VCCI
Display-
Control typeButtons
ColorNo
Maximum resolution- DPI
Printable dot numbers300 dot
Ribbon width60 mm
Core diameter25 mm
Ribbon length300 m
Media thickness0.150 mm
Maximum label width118 mm
Maximum media length1625.6 mm
Maximum roll diameter125 mm
RS-232 ports1
USB 2.0 ports quantityUSB 2.0 ports have a data transmission speed of 480 Mbps, and are backwards compatible with USB 1.1 ports. You can connect all kinds of peripheral devices to them.
Flash memory16 MB
Internal memory32 MB
Built-in barcodesCODABAR (NW-7), Code 128 (A/B/C), Code 39, Code 93, EAN13, EAN8, GS1 DataBar, ITF, PDF417, QR Code, UPC-A, UPC-E
Server operating systems supportedWindows Server 2012, Windows Server 2016, Windows Server 2019, Windows Server 2022
Windows operating systems supportedWindows 10, Windows 11, Windows 7
Weight and Dimensions IconWeight and Dimensions
Depth266 mm
Width178 mm
Height173 mm
Weight2600 g
Label width104 mm

Related product manuals