Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
package com.codename1.io.link
Byte links to devices on a cable or the local network – a serial port, a
TCP socket, a USB bulk endpoint – behind one blocking interface, for the
protocol drivers of payment terminals, receipt printers and other
point-of-sale peripherals.
Types
class ByteLink | A two-way byte connection to one device: a serial port, a TCP socket, a USB endpoint pair, or anything else with bytes in and out. |
class MemoryLink | Two links joined back to back in memory: what one writes the other reads. |
class SerialLink | A serial port: an RS-232 cable, or a USB serial adapter the operating system presents as one (COM3, /dev/ttyUSB0, /dev/ttyACM0). |
class StreamLink | A link over a pair of streams that are already connected, such as a Bluetooth socket’s. |
class TcpLink | A TCP connection to a device on the local network: a receipt printer on port 9100, a ZVT or nexo terminal on its configured port. |
class UsbLink | A USB device’s bulk endpoints: a USB receipt printer, or a USB CDC device – many payment terminals – whose serial line settings do not matter. |