Title: Improve and extend the `_read()` method availability for its users and related methods. Part 1: Cupsprinter, LP and on/offline. by belono · Pull Request #709 · python-escpos/python-escpos · GitHub
Open Graph Title: Improve and extend the `_read()` method availability for its users and related methods. Part 1: Cupsprinter, LP and on/offline. by belono · Pull Request #709 · python-escpos/python-escpos
X Title: Improve and extend the `_read()` method availability for its users and related methods. Part 1: Cupsprinter, LP and on/offline. by belono · Pull Request #709 · python-escpos/python-escpos
Description: Description This starts a PR series to improve and extend the availability of the _read() method to some connectors where it is currently not implemented. The objectives of this series are: Improve the way we validate the printer's response after a real time status query to reduce false positives. This will also allow for the eventual addition of new status queries (Offline cause, ink status, etc.). Implement the unsupported _read() method in the following connectors: File() Dummy() LP() Extend testing of the related methods. Part 1: Improve on/offline masks consistency and its usage by the Cups and LP connectors: This will close #611 by: Add a RT_MASK_OFFLINE constant and change the value of RT_MASK_ONLINE to a value that is more consistent with the ESC/POS real-time status response format for both constants (a validator/checker is included in a follow up PR, see #711 ). The new values are also consistent with the rest of RT_MASK_* constants. Make use of the on/offline mask values as the return values of the _read() method in the CupsPrinter() and LP() connectors to improve readability. Adapt the related methods and tests to the new values. Part 2: #711 Part 3: #712 Part 4: #714 Tested with TM-U210 Parallel port printer
Open Graph Description: Description This starts a PR series to improve and extend the availability of the _read() method to some connectors where it is currently not implemented. The objectives of this series are: Improv...
X Description: Description This starts a PR series to improve and extend the availability of the _read() method to some connectors where it is currently not implemented. The objectives of this series are: Improv...
Opengraph URL: https://github.com/python-escpos/python-escpos/pull/709
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:30528b46-3789-9287-703c-585ebd53aec4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D7A0:6474B:69994E:906D76:6A4DD035 |
| html-safe-nonce | c52a75349f82488e90cb2b6b463b28b44c4261d28fde7cdd601fc88041bbf3be |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0EwOjY0NzRCOjY5OTk0RTo5MDZENzY6NkE0REQwMzUiLCJ2aXNpdG9yX2lkIjoiMjA3NjE3MjQxMzY4NzQxODkzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 20b422686efd2316ffbe465295b6de12b7921499acb5ed969a565e048e45ebbb |
| hovercard-subject-tag | pull_request:2883183668 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python-escpos/python-escpos/pull/709/files |
| twitter:image | https://avatars.githubusercontent.com/u/12175851?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/12175851?s=400&v=4 |
| og:image:alt | Description This starts a PR series to improve and extend the availability of the _read() method to some connectors where it is currently not implemented. The objectives of this series are: Improv... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python-escpos/python-escpos git https://github.com/python-escpos/python-escpos.git |
| octolytics-dimension-user_id | 16302939 |
| octolytics-dimension-user_login | python-escpos |
| octolytics-dimension-repository_id | 32363483 |
| octolytics-dimension-repository_nwo | python-escpos/python-escpos |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 32363483 |
| octolytics-dimension-repository_network_root_nwo | python-escpos/python-escpos |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width