Skip to content

Releases: MertenF/epos-print-xml

ePOS Print XML v0.3

24 Jul 19:44
Compare
Choose a tag to compare
  • Added HTTP(S) timeout, default value of 3 seconds.
  • Added configuration arguments to epos.printer.Printer():
    • ip str, required
    • request_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 by print_empty() and printer_ready().
  • Improved type hints

ePOS Print XML v.02

02 Jul 17:07
Compare
Choose a tag to compare
  • Return response element when sending a print job
  • Removed a debug print statement