Receiving Data; Closing The Device Port - Epson TM-T88V User Manual

Epos-print sdk for android
Hide thumbs Also See for TM-T88V:
Table of Contents

Advertisement

Receiving Data

Use the EpsonIo class's
read (p.110)
//Settings for receiving
byte[] data = new byte[256];
int offset = 0;
int size = 256;
int timeout = 5000;
int sizeRead = 0;
int errStatus = IoStatus.SUCCESS;
//Receive data
try {
sizeRead = mPort.read(data, offset, size, timeout);
//Exception handling
} catch ( EpsonIoException e ) {
errStatus = e.getStatus();
}

Closing the Device Port

Use the EpsonIo class's
close (p.107)
int errStatus = IoStatus.SUCCESS;
//Close the device port
try {
mPort.close();
//Exception handling
} catch ( EpsonIoException e ) {
errStatus = e.getStatus();
}
Chapter 5 Command Transmission/Reception
to receive data from the printer. Please refer to the following code.
to close the device port. Please refer to the following code.
5
103

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tm-t70Tm-p60Tm-u220

Table of Contents