Epson TM-T70-i ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 145
onreceive event, Function response
View all Epson TM-T70-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 145 highlights
Chapter 4 ePOS-Print API onreceive event This property registers the callback function and obtains a response message receipt event. Syntax Function (response) Parameter of the callback function Parameters: Name: Object type: response (See "Properties of the response object" on page 145.) Response message Object Properties of the response object Property success (p. 145) code (p. 145) status (p. 146) battery (p. 146) printjobid (p. 146) * Name Print result Error code Status Battery status Print job ID Object type Boolean String Number Number String * ePOS-Print Service Ver.4.1 or later versions supported Value of success Value true or 1 false or 0 Description Printing succeeded Processing succeeded (When the spooler function is enabled) 4 Printing Failed Processing Failed (When the spooler function is enabled) Value of code Value 'EPTR_AUTOMATICAL' 'EPTR_BATTERY_LOW' 'EPTR_COVER_OPEN' 'EPTR_CUTTER' 'EPTR_MECHANICAL' 'EPTR_REC_EMPTY' 'EPTR_UNRECOVERABLE' 'SchemaError' 'DeviceNotFound' 'PrintSystemError' 'EX_BADPORT' 'EX_TIMEOUT' 'EX_SPOOLER' * 'JobNotFound' * 'Printing' * Description An automatically recoverable error occurred No remaining battery A cover open error occurred An autocutter error occurred A mechanical error occurred No paper in roll paper end sensor An unrecoverable error occurred The request document contains a syntax error The printer with the specified device ID does not exist An error occurred on the printing system An error was detected on the communication port A print timeout occurred There is not enough space available in the printing queue The specified job ID does not exist Print job now printing * ePOS-Print Service Ver.4.1 or later versions supported 145