markusfisch / BinaryEye

Yet another barcode scanner for Android
https://play.google.com/store/apps/details?id=de.markusfisch.android.binaryeye
MIT License
1.51k stars 121 forks source link

Please add wifi qr code generation option #237

Open garawaa opened 2 years ago

garawaa commented 2 years ago

I tried generate wifi qr code with common qr option but it generates wrong qr code.

markusfisch commented 2 years ago

Sorry for the inconvenience 😬

Did you use the common format as shown on the QR Code Wikipedia page? https://en.wikipedia.org/wiki/QR_code#Joining_a_Wi%E2%80%91Fi_network

Because the WiFi format is just text and should encode just fine.

To verify this, you may scan the sample QR Code on the Wikipedia page, tap on the three dots in the top right corner (aka the overflow menu) and choose "Compose barcode" to re-generate it. Then, save this new barcode (or scan it from another device) and compare the decoded data with the original content. There should be no difference.

I might add a special form for these types of barcodes in the future. Until then, there are many websites that offer generation of WiFi barcodes. Just google for "create wifi qr" 😉

cjbarth commented 2 years ago

If you every do create a form for this, please include support for WPA2 Enterprise. In fact, if you're open to this, I might take a crack at it. Seems like it should be pretty straight forward. Though it should probably be part of a larger discussion about templates for what data to enter. Something simple like https://keremerkan.net/qr-code-and-2d-code-generator/.

cjbarth commented 2 years ago

After reviewing more open issues, it seems this might be a duplicate of #180