Skip to content

Commit a81dfb4

Browse files
committed
fix(docs): include connection type in the example
1 parent fd80605 commit a81dfb4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ const main = async () => {
3030
);
3131
console.info("Found printers:", results);
3232

33-
const printer = await connect(results[0].ipAddress);
33+
const printer = await connect(
34+
ESCPOSConst.CMP_PORT_WiFi,
35+
results[0].ipAddress
36+
);
3437
await printer.printText("Hello World!\n");
3538
await printer.cutPaper(ESCPOSConst.CMP_CUT_FULL_PREFEED);
3639
await printer.disconnect();

0 commit comments

Comments
 (0)