![Citizen CL-E300 Programming Manual Download Page 18](http://html1.mh-extra.com/html/citizen/cl-e300/cl-e300_programming-manual_2610002018.webp)
CITIZEN Android Label Print SDK
—
Programming Manual
18
Return value
Returns CLS_SUCCESS (0) on success, an error code otherwise. See below for the error codes.
" describes all error codes.
Error code
Description
CLS_E_CONNECTED (1001)
The printer is already connected.
CLS_E_NOTCONNECT (1003)
Failed to connec to the printer.
(1) The printer is not connected.
(2) The printer is not turned on.
(3) The port handle could not be obtained.
CLS_E_CONNECT_NOTFOUND (1004) Failed to confirm if the printer is a supported model.
(1) The printer model is not supported.
CLS_E_NOCONTEXT (1006)
No context is specified.
CLS_E_BT_DISABLE (1007)
The Bluetooth device setting is invalid.
CLS_E_BT_NODEVICE (1008)
The Bluetooth device is not found.
Example
printer.connect(LabelConst.CLS_PORT_WiFi, "192.168.129.130");
printer.connect(LabelConst.CLS_PORT_Bluetooth, "");
UsbDevice usbDevice = null;
printer.connect(LabelConst.CLS_PORT_USB, usbDevice);