Print printer = new Print();
int[] status = new int[1];
status[0] = 0;
try {
Builder builder = new Builder("TM-T88V", Builder.MODEL_ANK);
builder.addText("ABCDE");
printer.openPrinter(Print.DEVTYPE_TCP, "192.168.192.168");
printer.sendData(builder, 10000, status);
printer.closePrinter();
} catch (EposException e) {
int errStatus = e.getErrorStatus();
status[0] = e.getPrinterStatus();
}
To send a command to the printer by specifying 10 seconds for its timeout parameter: