Epson TM-T70-i ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 143
status property, battery property
View all Epson TM-T70-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 143 highlights
Chapter 4 ePOS-Print API status property Status of the printer. Object type Number Description This is the status last obtained from the printer. This is read-only. Default value: 0 Example battery property 4 Battery status of the printer. Object type Number Description Battery status obtained from the last printer status. This is read-only. Default value: 0 Example 143
143
Chapter 4
ePOS-Print API
4
status property
Status of the printer.
Object type
Number
Description
This is the status last obtained from the printer. This is read-only.
Default value: 0
Example
battery property
Battery status of the printer.
Object type
Number
Description
Battery status obtained from the last printer status. This is read-only.
Default value: 0
Example
<script type="text/javascript" src="epos-print-4.x.x.js"></script>
<script type="text/javascript">
<!--
var epos = new epson.ePOSPrint(address);
epos.onoffline = function () {
alert(epos.status);
};
epos.open();
//-->
</script>
<script type="text/javascript" src="epos-print-4.x.x.js"></script>
<script type="text/javascript">
<!--
var epos = new epson.ePOSPrint(address);
epos.onbatterylow = function () {
alert(epos.battery);
};
epos.open();
//-->
</script>