Skip to content
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

How can I put more characters on the QR code? #16

Open
Thibis opened this issue Dec 3, 2019 · 0 comments
Open

How can I put more characters on the QR code? #16

Thibis opened this issue Dec 3, 2019 · 0 comments

Comments

@Thibis
Copy link

Thibis commented Dec 3, 2019

I am trying to put +- 100 characters on the QR code. But I am having problems, because it need to be converted on array. What type of variable can I use to storage +- 100 characters?

When I try to put a char, a erro appears: " int8_t qrcode_initText(QRCode *qrcode, uint8_t *modules, uint8_t version, uint8_t ecc, const char *data);"

`String str;
ptos ++;
ptos ++;
e = horas;
total = ptos10000 + e100 + minutos;
Serial.println(total);
Serial.print(" = ");
str = String(total);
str.toCharArray(a,160);
Serial.print(a);
Serial.print("\n");

Serial.print("\n");
// Start time
uint32_t dt = millis();

// Create the QR code
QRCode qrcode;
uint8_t qrcodeNumeric[qrcode_getBufferSize(3)];
qrcode_initText(&qrcode, qrcodeNumeric, 3, ECC_LOW, total); `

Thanks for all

@Thibis Thibis changed the title How can I put more characteres on the QR code? How can I put more characters on the QR code? Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant