Comments (3)
@saitahmety the printer must return all four statuses in this method if the memory switch 1-3 is set to "receive buffer full" from "receive buffer full or offline", as you can see here mike42/escpos-php#43 (comment)
"receive buffer full" => printer always responds
"receive buffer full or offline" => printer does not respond in some situations such as cover open or paper out
After changing this memory switch, it always returns successfully.
But there is still a bug because the promise is not rejected when "receive buffer full or offline" is set, so I created a pull #46 to solve it
from driver.
Oh I got it, thank you so much @felipeguimaraes2 , solved on this #46
from driver.
Moreover,
getStatuses function does not return response when at least one of these 4 statuses is undefined.
Because of "if (buffer.length < 4)" condition.
But I want to get the other statuses even if the byte data of one status is undefined.
When I remove "if (buffer.length < 4)" condition
output like this,
Can we remove this condition ?
Please revision code and release NPM. It's important for my project.
Thanks for this awesome project.
from driver.
Related Issues (20)
- Best practice question: Keep the printer connection open or not? HOT 1
- Table items are not aligned
- The image cannot be printed completely HOT 1
- Open CashDrawer HOT 1
- Don't Work with Metapace T-40 HOT 1
- QRImage don't work
- Can't use printer.getStatus HOT 1
- Help me use bluetooth adapter
- Encoding Problem
- USB constructor using the printer you pass to it.
- How to install and run this module? HOT 4
- Raspberry pi 4 don't run file rastertoT40
- Add Barcode Data "Letter" Support HOT 1
- documentation for @node-escpos/server
- Please maintain This Repo. Update NPM Code HOT 1
- Unable to load an image with a callback function
- Error importing in common js
- Unable to load image form UInt8Array. I get this error: TypeError [ERR_INVALID_ARG_VALUE]: The argument 'path' must be a string or Uint8Array without null bytes. Received Uint8Array(6191) HOT 2
- Error: [ERR_STREAM_DESTROYED] Cannot call write after a stream was destroyed. HOT 1
- Error: Can't close device with a pending request HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from driver.