[GH-ISSUE #62] Allow for larger QR codes #29

Closed
opened 2026-05-07 00:17:58 +02:00 by BreizhHardware · 4 comments

Originally created by @adrianipopescu on GitHub (Mar 12, 2025).
Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/62

Originally assigned to: @glenndehaan on GitHub.

The feature

When trying to use a 32-character long password for my wifi, I get:

The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: 5.

And the app crashes and reboots.

Would it be possible to support such scenarios?

Originally created by @adrianipopescu on GitHub (Mar 12, 2025). Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/62 Originally assigned to: @glenndehaan on GitHub. ### The feature When trying to use a 32-character long password for my wifi, I get: The chosen QR Code version cannot contain this amount of data. Minimum version required to store current data is: 5. And the app crashes and reboots. Would it be possible to support such scenarios?
BreizhHardware 2026-05-07 00:17:58 +02:00
Author
Owner

@glenndehaan commented on GitHub (Mar 12, 2025):

Hi @adrianipopescu,

Well I didn't expect someone to do it, but you did.
When I designed the QR feature I needed to make a decision on how big the QR Code would be, and therefore how much data it could hold.

And I thought lets pick the middle ground: a somewhat limited but smaller QR but enough to either support larger SSID's or SSID's with a reasonable password.

But a 32 character password I was not expecting. Looking at the RFC it seems that the maximum amount of characters is 63.

I will have a look for next release to see if this fits the PDF and ESC/POS Print Versions. The email I'm not concerned about.

Some notes for myself:

  • SSID RFC: 32 Chars MAX
  • PSK RFC: 63 Chars MAX
  • WIFI QR Recognition String: 17 Chars MAX
  • Total Needed: 112 Chars
  • Error Correction Level: Q
  • Minimum Version: 7 (45x45)

Image

<!-- gh-comment-id:2718723459 --> @glenndehaan commented on GitHub (Mar 12, 2025): Hi @adrianipopescu, Well I didn't expect someone to do it, but you did. When I designed the QR feature I needed to make a decision on how big the QR Code would be, and therefore how much data it could hold. And I thought lets pick the middle ground: a somewhat limited but smaller QR but enough to either support larger SSID's or SSID's with a reasonable password. But a 32 character password I was not expecting. Looking at the RFC it seems that the maximum amount of characters is 63. I will have a look for next release to see if this fits the PDF and ESC/POS Print Versions. The email I'm not concerned about. Some notes for myself: - SSID RFC: 32 Chars MAX - PSK RFC: 63 Chars MAX - WIFI QR Recognition String: 17 Chars MAX - Total Needed: 112 Chars - Error Correction Level: Q - Minimum Version: 7 (45x45) ![Image](https://github.com/user-attachments/assets/6994757c-bd5a-4afe-b929-670edfab73b0)
Author
Owner

@adrianipopescu commented on GitHub (Mar 12, 2025):

sorry

<!-- gh-comment-id:2719185628 --> @adrianipopescu commented on GitHub (Mar 12, 2025): _sorry_
Author
Owner

@glenndehaan commented on GitHub (Mar 13, 2025):

Hi @adrianipopescu,

Good News! I just released version 5.0.1, this included the path for the QR code generation when utilizing larger SSID's and/or Passwords.

<!-- gh-comment-id:2722315970 --> @glenndehaan commented on GitHub (Mar 13, 2025): Hi @adrianipopescu, Good News! I just released version 5.0.1, this included the path for the QR code generation when utilizing larger SSID's and/or Passwords.
Author
Owner

@adrianipopescu commented on GitHub (Mar 13, 2025):

thank you for this!

<!-- gh-comment-id:2722361180 --> @adrianipopescu commented on GitHub (Mar 13, 2025): thank you for this!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/unifi-voucher-site#29
No description provided.