Skip to content

Commit

Permalink
fix(docs): include connection type in the example
Browse files Browse the repository at this point in the history
  • Loading branch information
vicary committed Jan 2, 2025
1 parent fd80605 commit a81dfb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ const main = async () => {
);
console.info("Found printers:", results);

const printer = await connect(results[0].ipAddress);
const printer = await connect(
ESCPOSConst.CMP_PORT_WiFi,
results[0].ipAddress
);
await printer.printText("Hello World!\n");
await printer.cutPaper(ESCPOSConst.CMP_CUT_FULL_PREFEED);
await printer.disconnect();
Expand Down

0 comments on commit a81dfb4

Please sign in to comment.