You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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().