Closed fjdevesa closed 3 years ago
same problem here. @fjdevesa do you found any solution?
Hi @luisvinicius167,
I don't find any solution to it and finally don't need to print a QR Code.
Yeah, thanks @fjdevesa!
@beaufortfrancois do you still have this printer to verify that the demo code is still working?
@luisvinicius167 you said you were able to print text. The original demo also prints an image. Does that work correctly on your device?
@reillyeon text works! But image, not.
@reillyeon I don't have it. @entertailion may still have though. Can you verify that the demo code for an image is still working?
Sorry, I don't have the printer anymore.
If anyone comes across this issue, I had luck with a MunByn thermal printer
I changed the byte size to 20 instead of 512 when looping through printData, and updated the canvas height and width to 320 by 320, although this will vary for each type of printer
@alexlovato303, did you manage to print image? I can print some blank lines but that is after modifying the getDarkPixel. Otherwise, I can only print text.
i already test for print image, it will become success if the image heigth is greater then width or image height and width is equal, i have test image size for less or equal 400px, for canvas width and height max value is 400 the best value is 360, and background must be transparent not white or other color
Thanks for the issue and discussion on this demo. I'm closing the issue as there's no recent activity. If anyone would like to improve the demos please see https://github.com/WebBluetoothCG/demos/blob/gh-pages/bluetooth-printer/CONTRIBUTING.md
Hi,
I'm trying to print a QRCode modifiying your Web Bluetooth Printer demo in: https://github.com/WebBluetoothCG/demos/tree/gh-pages/bluetooth-printer
I'm using script qrious from https://github.com/neocotic/qrious to generate a canvas with QRCODE. Attach my html file:
When I call to printCharacteristic.writeValue in function sendNextImageDataBatch nothing happens in my printer that is the same than https://www.amazon.com/Version-AGPtek%C2%AE-Portable-Bluetooth-Wireless/dp/B00XL3DY2E Soo many days frustated with it. I use your example to print text and don't have any issue. Aslo try to print with this manual http://reliance-escpos-commands.readthedocs.io/en/latest/imaging.html for generate and print a QRCode with esc/pos native (not use a qrcode in canvas) but not works.
But also I want to create a canvas with my company site to print it for this reason wants to print a canvas and not use Esc/Pos codes.
Attach screen captures from my printer:
Thanks for your help in advance