EasyManua.ls Logo

BIXOLON SPP-R300 - Battery Safety - Warning; Battery Handling Warnings

BIXOLON SPP-R300
50 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
POS/Mobile Printer
Rev. 1.00
- 7 -
3. Method
The development environment is based on C.
3-1 ConnectToPrinter
Set the connection for communication with the printer.
int ConnectToPrinter(const char *port)
[Parameters]
* const char *port
[in] Interface to be connected to the printer
Interface
Input Data
Example
USB
USB:
ConnectToPrinter(“USB:”)
Serial
serial:(baudrate)
/dev/ttyX:(baudrate)
ConnectToPrinter(“serial:115200”)
ConnectToPrinter(“/dev/tty0:115200”)
Parallel
parallel
/dev/lpX
ConnectToPrinter(“parallel”)
ConnectToPrinter(“/dev/lp0”)
Bluetooth
Device MAC address
ConnectToPrinter(“7d:f0:7d:e4:e0:78”)
Ethernet, Wifi
IP address, port no.
ConnectToPrinter(“192.168.0.10:9100”)
[Return Values]
Constant
Value
Description
SUCCESS
0
The operation is successful.
PORT_OPEN_ERROR
-99
The communication port cannot be opened.
NO_CONNECTED_PRINTER
-100
The printer is not connected.
NO_BIXOLON_PRINTER
-101
It is not a BIXOLON printer.
* Example
int ret;
// USB
ret = ConnectToPrinter(“USB:”);
// Serial
ret = ConnectToPrinter(“serial:115200”);
// Parallel
ret = ConnectToPrinter(“parallel);
// bluetooth
ret = ConnectToPrinter(“7d:f0:7d:e4:e0:78”);
// Ethernet or WiFi
ret = ConnectToPrinter(“192.168.0.10:9100”);
……

Other manuals for BIXOLON SPP-R300

Related product manuals