Epson TM-T70-i ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 49
Reception of Status Event, Programming Guide
View all Epson TM-T70-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 49 highlights
Chapter 3 Programming Guide Reception of Status Event The status event notification function is used to check the printer status without printing. Refer to the following: //Set the end point address var address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer &timeout=10000'; //Create an ePOS-Print Builder object var builder = new epson.ePOSBuilder(address); //Set an event callback function (cover open) epos.oncoveropen = function () { alert('coveropen'); }; //Set an event callback function (paper near end) epos.onpapernearend = function () { alert('papernearend'); }; //Enable status event operation epos.open(); 3 49
49
Chapter 3
Programming Guide
3
Reception of Status Event
The status event notification function is used to check the printer status without printing. Refer to the
following:
//Set the end point address
&timeout=10000';
//Create an ePOS-Print Builder object
var builder = new epson.ePOSBuilder(address);
//Set an event callback function (cover open)
epos.oncoveropen = function () {
alert('coveropen');
};
//Set an event callback function (paper near end)
epos.onpapernearend = function () {
alert('papernearend');
};
//Enable status event operation
epos.open();