Releases: MertenF/epos-print-xml
Releases · MertenF/epos-print-xml
ePOS Print XML v0.3
- Added HTTP(S) timeout, default value of 3 seconds.
- Added configuration arguments to
epos.printer.Printer()
:ip
str, requiredrequest_timeout
int, default=3. Time in seconds, maximum time waiting until first byte is send back of our HTTP request to the printer.use_https
bool, default=False Whether to use HTTP or HTTPS. When using HTTPS a valid certificate is required on the printer.devid
str, default='local_printer' The Device ID of the printer. This should be the same as the setting on the printer itself.job_timeout
int, default=5000 Time in miliseconds, ePOS XML job timeout. This is the time that the printer waits after the data is received but the printing has not yet started.url
: str='/cgi-bin/epos/service.cgi' The path on where the printer is listening.
- Added 'PARSING_ERROR' as error code in the response object. This means that the parsing from string to XML failed.
- Removed
try_connection()
in the Printer class. This has been replaced byprint_empty()
andprinter_ready()
. - Improved type hints
ePOS Print XML v.02
- Return response element when sending a print job
- Removed a debug print statement