Epson Mobilink P80 ePOS-Print API Users Manual - Page 147
timeout property
![]() |
View all Epson Mobilink P80 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 147 highlights
Chapter 4 ePOS-Print API timeout property Specifies connection timeout. Object type Number Description Specifies connection timeout with ePOS-Print supported printer in milliseconds. When the transmission of print document by send method times out, onerror even is generated. Default value: 300000 (5 minutes) Example 4 147
![](/manual_guide/products/epson-p60ii-eposprint-api-user-s-manual-65937ba/147.png)
147
Chapter 4
ePOS-Print API
4
timeout property
Specifies connection timeout.
Object type
Number
Description
Specifies connection timeout with ePOS-Print supported printer in milliseconds. When the transmission of
print document by send method times out, onerror even is generated.
Default value: 300000 (5 minutes)
Example
<script type="text/javascript" src="epos-print-3.x.x.js"></script>
<script type="text/javascript">
<!--
var builder = new epson.ePOSBuilder();
builder.addText('Hello, World!\n');
builder.addCut();
var request = builder.toString();
var epos = new epson.ePOSPrint(address);
epos.timeout = 60000;
epos.onreceive = function (res) { alert(res.success); };
epos.onerror = function (err) { alert(err.status); };
epos.send(request);
//-->
</script>