thermalPrinter | Use node.js to communicate with Adafruit/Sparkfun
kandi X-RAY | thermalPrinter Summary
kandi X-RAY | thermalPrinter Summary
Use node.js to communicate with Adafruit/Sparkfun Thermal Printer
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Write to serial port .
thermalPrinter Key Features
thermalPrinter Examples and Code Snippets
Community Discussions
Trending Discussions on thermalPrinter
QUESTION
I have two Bluetooth thermal printers as well as an integrated device.
One of the printers doesn't support QR codes via GS ( k .. 49, so I'm printing by loading a file.bmp into a Bitmap kotlin class and then sending as image via GS v 0.
The problem I'm facing is that when I print the QR image the other printer stalls mid-image.
I must restart the printer for it to work properly, otherwise it'll print garbage.
The source file has the following characteristics:
- 82x82 pixels
- 2.9x2.9 cm print size (needs to be 3 cm)
- 24 bits per pixel
- 2 colors
It's loaded into a kotlin Bitmap as such:
...ANSWER
Answered 2021-Jun-30 at 16:42Turns out the problem wasn't in the printer buffer, missing ESC/POS command or data size.
I must wait before closing the Bluetooth socket otherwise there may be unsent data.
So,
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install thermalPrinter
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page