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-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.onbatterylow = function () {
alert(epos.battery);
};
epos.open();
//-->
</script>
146