-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QR code printing example #24
Comments
thanks @albertorcf this method work for me.
|
Hello //This is my js code
}; app.initialize(); i am getting texting printing but i am not getting qr code print . |
Hey there! I've been strugling with this for a while and couldn't get it to work. Do you need a special kind of printer in order to print QR Codes? I have a Dapper BM9000-II. I tried different ways but all came out with same result, some HEX Codes and then the url i put as data. Would be appreciated any help! :-) |
I do not know if your printer uses escpos language to print. If so, this code below works for me. ` var qr_size = '\x08'; // size var qr_eclevel = '\x49'; // error correction level (30, 31, 32, 33 - higher) var qr_data = 'http://www.google.com'; var qr_pL = String.fromCharCode((qr_data.length + 3) % 256); var qr_pH = String.fromCharCode((qr_data.length + 3) / 256); bluetoothSerial.write('\x1B\x61\x01'); // Centralizar texto |
I tried that code but it didn't work. On the sel test page of the printer it shows a QR Code but I don't know how to get it. I Used google URL as data for test without success. Only way I find to print a QR was with @CesarBalzer image printing method. Thanks for answering nevertheless! :-) |
This method is working |
Hi Jasonchong3329, Thank you for this! I'm using bluetooth serial plug in and your code worked! Were you able to print images using the bluetoothSerial plugin? I'm trying to print images and was hoping you might have some insight. I'm reviewing this manual I got to page 116 <function 180> to save the QR data but don't understand how you get '\x31\x50\x30' before the QR data. I'm trying to understand your code 100% in hopes I might be able to use it to print an image instead. Would you please help me print an image with bluetoothSerial? |
The text was updated successfully, but these errors were encountered: