-
Notifications
You must be signed in to change notification settings - Fork 205
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
Not working with bigger string #9
Comments
The longest string (alphanumeric) is 114 with your version: 4 and without error correction: 0. Check the readme to see what a version you need to show your string of 168 chars. |
It is 6, but what it mean? Does this library support it? |
Don't know why it is called version. I don't know if it works with 6. I was trying to put my string of 30 characters on a version 2 QR code and it doesn't work with this library. Don't know why. And also the error correction seems that does not work always... Just try :P |
I agree, the name “version” is confusing, but that’s the name in the specification. :) Yes, version 6 should work fine. I’ve tested it with all version numbers and levels against other implementations, and it have. It found any issues. If you have a problem, please include the version, EC level, mode and message and I’ll investigate. A very common mistake is to use the alphanumeric mode incorrectly; alphanumeric in the QR code specification is VERY strict, and only supports upper case letters and a handful of symbols. So, if you specify alphanumeric with a string like “http://foobar.com”, you have likely just caused a buffer overflow. When I get a chance, I’ll add more introspection APIs, to discover a strings type and the QR code version required to store it. |
Oh, actually. Just checked the code (it’s been quite a while since I’ve worked on it). It won’t buffer overflow. It will return -1 though. So, check the return status of |
(sorry clicked the wrong button) |
Yes, I was trying to create a WiFi-settings string with ';', upper and lower case characters. |
It has not problem with urls but with big string like this:
When I reduce string size it works fine... Just try to run the code I wrote in my main thread... |
The error code return alway returns 0. The code says: I'll make this a new issue |
Hello
I am using ESP8266 and E paper display
Problem is when I want to generate qr code from bigger string, here is my function that generate qr code:
This is string which I try to use to generate qr code:
In console I get this error:
Found out that this function creating error:
qrcode_initText
When I use smaller string it works. Any solution for this? Also is it possible to update qr code at once not part by part?
#EDIT: Did little debuging, first time error occure here:
bb_initGrid(&modulesGrid, modules, size);
in this function qrcode_initBytesThe text was updated successfully, but these errors were encountered: