Write - Epson TM-T88V User Manual

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

Advertisement

write

Sends data to a device port.
Syntax
public int write
Parameter
 data :
The sending data buffer. It stores data to be sent.
 offset :
Specifies the start position for sending data. 
Please specify the offset value from the top of the sending data buffer.
 size :
Specifies the number of bytes to send.
 timeout :
Specifies the time in milliseconds to wait for sending to complete. 
The maximum value that can be specified is 600000 (which equates to 10 minutes).
Return value
Returns the number of bytes of data that were sent.
The printer did not necessarily receive the amount of data that the return value shows.
If the amount of time specified in timeout is exceeded, the returned return value is the number of
bytes that were sent up to that point.
108
(byte[] data, int offset, int size,
int timeout)
throws EpsonIoException
If "0" is specified for size, no data will be sent. In such a case, the return value will be "0".
• Take the transmission speed and volume of data to be sent into account when specifying
the timeout value.
• When the timeout value is too short, the sending process will still continue until all the
data has been sent, while normal data sending is occurring, even if the timeout value is
exceeded.
• With a Bluetooth device, there is a chance that the sending process will be blocked. In
such a case, processing will not complete even if the specified timeout value elapses.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tm-t70Tm-p60Tm-u220

Table of Contents