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
Thank you for a quick response.
In my case I'm printing on remote printer and don't see if print job done successfully.
Paper status working perfect, but then I check if printer is online, I am getting this trackback:
>>> Epson.is_online() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/bobo/.local/lib/python3.5/site-packages/escpos/escpos.py", line 847, in is_online return not (status & RT_MASK_ONLINE) TypeError: unsupported operand type(s) for &: 'array.array' and 'int'
on "EPSON TM-T88V Receipt" printer. may be there is a some other solution...
Activity
patkan commentedon Dec 10, 2017
Do you mean checking whether the printer has successfully printed the receipt?
As far as I know there is no general option in standard ESCPOS, but maybe your printer can do that (however I haven't heard of any yet)
Your best bet would probably be asking a human to check or checking the state of your printer before and after the print.
If you describe your use case a bit, we can try to search a solution.
arborin commentedon Dec 10, 2017
Thank you for a quick response.
In my case I'm printing on remote printer and don't see if print job done successfully.
Paper status working perfect, but then I check if printer is online, I am getting this trackback:
>>> Epson.is_online() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/bobo/.local/lib/python3.5/site-packages/escpos/escpos.py", line 847, in is_online return not (status & RT_MASK_ONLINE) TypeError: unsupported operand type(s) for &: 'array.array' and 'int'on "EPSON TM-T88V Receipt" printer. may be there is a some other solution...
Paulo-Branco commentedon Dec 14, 2017
I'm also having the same issue when calling the is_online() method.
[-]Print status[/-][+]is_online() is broken[/+]patkan commentedon Feb 3, 2018
Thank you for the report, I checked and there is a bug in is_online(). (
statusis and array)To fix this compare https://github.com/python-escpos/python-escpos/blob/development/src/escpos/escpos.py#L847 with
paper_status.thijstriemstra commentedon Feb 12, 2018
@patkan ran into same issue, opened #282 that fixes the issue.
jeffreyworsley commentedon Mar 9, 2018
https://stackoverflow.com/questions/49186670/esc-pos-dle-eot-printer-status-escpos