free hit counter

Onbatterystatuschange Event; Ononline Event - Epson TM-T88V-i User Manual

Epos-print api
Hide thumbs Also See for TM-T88V-i:
Table of Contents

Advertisement

onbatterystatuschange event

Registers call back function and obtains battery status change event. (in firmware Ver.2.2 and later)
Object type
Function (battery)
Parameter of the callback function
Parameters:
battery
Name:
Batterystatus
Object type:
Number
Example
<script type="text/javascript" src="epos-print-3.x.x.js"></script>
<script type="text/javascript">
<!--
var address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer';
var epos = new epson.ePOSPrint(address);
epos.onbatterystatuschange = function (battery) {
alert(battery);
};
epos.open();
//-->
</script>

ononline event

Registers a callback function to obtain a online event. (in firmware Ver.1.2 and later)
Object type
Function ()
Example
<script type="text/javascript" src="epos-print-3.x.x.js"></script>
<script type="text/javascript">
<!--
var address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer';
var epos = new epson.ePOSPrint(address);
epos.ononline = function () {
alert('online');
};
epos.open();
//-->
</script>
Chapter 4 ePOS-Print API
153
4

Hide quick links:

Advertisement

Table of Contents
loading