Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 21/02/2025 0.9.24

- Added support for epson printers communicating over SSL

## 31/03/2023 0.9.11

- Bugfix for Symbols
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@baemingo/epson-printer-sdk",
"version": "0.9.23",
"version": "0.9.24",
"description": "A modern and simple \"connect-less\" integration against EPSON printers",
"license": "MIT",
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions src/printer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const EPSON_XML_HEADER =
class EpsonPrinter {
private url;

constructor(ip: string) {
this.url = `http://${ip}/cgi-bin/epos/service.cgi?devid=local_printer&timeout=10000`;
constructor(ip: string, useSsl = false) {
this.url = `${useSsl ? 'https' : 'http'}://${ip}/cgi-bin/epos/service.cgi?devid=local_printer&timeout=10000`
}

public async send(print: EpsonPrint) {
Expand Down