Re: Issue 1367 in zxing: WIFI QR Code Will Not Connect to Network

3,699 views
Skip to first unread message

zx...@googlecode.com

unread,
Sep 26, 2012, 7:22:27 AM9/26/12
to zx...@googlegroups.com

Comment #1 on issue 1367 by srowen: WIFI QR Code Will Not Connect to Network
http://code.google.com/p/zxing/issues/detail?id=1367

This isn't enough information. In particular the password / SSID are
importnat. Are they hex? escaped as hex with single quotes?

zx...@googlecode.com

unread,
Sep 27, 2012, 8:00:27 AM9/27/12
to zx...@googlegroups.com
Updates:
Status: NotABug

Comment #2 on issue 1367 by srowen: WIFI QR Code Will Not Connect to Network
http://code.google.com/p/zxing/issues/detail?id=1367

Will reopen with more info -- works for me on all tested SSIDs. Nota bene
that ASCII passwords and SSIDs should be enclosed in quotes, especially if
they are mistake-able for hex (e.g. "CAFE")

zx...@googlecode.com

unread,
Nov 20, 2014, 6:13:26 PM11/20/14
to zx...@googlegroups.com

Comment #3 on issue 1367 by NightSto...@gmail.com: WIFI QR Code Will Not
Connect to Network
https://code.google.com/p/zxing/issues/detail?id=1367

Just ran into this myself with a code from an online QR generator. Figured
i would post my findings in case someone else hits this page.

http://getqr.eu/ spits out a non-working code:
WIFI:T:WPA;S:MYWifiNetwork;P:NetTesting!

While http://zxing.appspot.com/generator spits out a working code:
WIFI:S:MyWifiNetwork;T:WPA;P:NetTesting!;;

Note the extra ";;" at the end of the second version. Not sure if its just
a phrasing error, but the application takes both versions happily as wifi
codes, but will do nothing with the first one. When hitting "Connect to
Network", it displays "Requesting connection to network..." but no
connection profile is created in the network settings area.

If the code is required to be terminated with ";;", perhaps an error should
be thrown when the code isn't terminated or the application should
automatically terminate it.

Hope this helps.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

zx...@googlecode.com

unread,
Nov 21, 2014, 5:22:24 AM11/21/14
to zx...@googlegroups.com

Comment #4 on issue 1367 by srowen: WIFI QR Code Will Not Connect to Network
https://code.google.com/p/zxing/issues/detail?id=1367

Yes, the ;; is required. This mimics MECARD format. I don't think it makes
sense to call this an error. It parses, just not as a wi-fi QR code. It's
text.

(This site is not used anymore BTW.)

zx...@googlecode.com

unread,
Nov 21, 2014, 1:06:33 PM11/21/14
to zx...@googlegroups.com

Comment #5 on issue 1367 by NightSto...@gmail.com: WIFI QR Code Will Not
Thanks for the update, this is just where i landed when i searched for the
problem. :)

The reason i posted was because both versions come up as a wifi code, not
text. So the app shows it as a wifi code, provides a useless "Connect to
Network" button and then displays "Requesting connection to network..."
like it should be working.

It's something that should be checked. The parser most likely sees
the "WIFI:" part and assumes its a wifi code but because it's not
validating for the proper format, it doesn't alert user that it's invalid
(or show the code as text only) and goes on pretending it's working. That
caused a lot of confusion for me and because i don't know much about QR
code format, i didn't know what was wrong with the app and why it wasn't
working properly.

Either way, hopefully this post will help others that come across the same
issue.
Reply all
Reply to author
Forward
0 new messages