Skip to content

Commit d23ed59

Browse files
committed
update documentation
1 parent 62a7642 commit d23ed59

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ Get a list of bluetooth printers.
402402
#### Constructor : `TcpConnection(String address, int port[, int timeout])`
403403
- **param** `String address` : Targeted ip address
404404
- **param** `int port` : Targeted tcp port
405-
- **param** `int timeout` *(optional)* : Connection timeout.
405+
- **param** `int timeout` *(optional)* : Connection timeout (default : 30)
406406

407407
### Class : `com.dantsu.escposprinter.connection.usb.UsbPrintersConnections`
408408

escposprinter/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ The code below is an example to write in your activity :
151151
new Thread(new Runnable() {
152152
public void run() {
153153
try {
154-
EscPosPrinter printer = new EscPosPrinter(new TcpConnection("192.168.1.3", 9300), 203, 48f, 32);
154+
EscPosPrinter printer = new EscPosPrinter(new TcpConnection("192.168.1.3", 9300, 15), 203, 48f, 32);
155155
printer
156156
.printFormattedText(
157157
"[C]<img>" + PrinterTextParserImg.bitmapToHexadecimalString(printer, getApplicationContext().getResources().getDrawableForDensity(R.drawable.logo, DisplayMetrics.DENSITY_MEDIUM)) + "</img>\n" +
@@ -397,6 +397,13 @@ Easy way to get the first bluetooth printer paired / connected.
397397
Get a list of bluetooth printers.
398398
- **return** `BluetoothConnection[]`
399399

400+
### Class : `com.dantsu.escposprinter.connection.tcp.TcpConnection`
401+
402+
#### Constructor : `TcpConnection(String address, int port[, int timeout])`
403+
- **param** `String address` : Targeted ip address
404+
- **param** `int port` : Targeted tcp port
405+
- **param** `int timeout` *(optional)* : Connection timeout (default : 30)
406+
400407
### Class : `com.dantsu.escposprinter.connection.usb.UsbPrintersConnections`
401408

402409
#### **Static** Method : `selectFirstConnected()`

0 commit comments

Comments
 (0)