question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

QR code doesn't work with iOS stock cam

See original GitHub issue

Hi @kbr , thanks for adding the QR code feature.

I recently tested the functionality and I can’t connect to the wifi with iOS stock cam scanning the qr code. The connection fails. If I use a app like Qrafter I could connect to the network. With Qrafter its possible to read out the qr code. I noticed that there is no encryption setting within the qr code.

So I wrote a script and adding the security parameter "WPA/WPA2" to make_wifi() from the segno library. It works even on a WPA2 + WPA3 network.

from segno.helpers import make_wifi
import io

ssid = "myssid"
pw = "mypw"
encryption="WPA/WPA2"

stream = io.BytesIO()
qr_code = make_wifi(ssid=ssid, password=pw, security=encryption)
qr_code.save("qr.png", kind="png")

Could you please add the encryption setting to make this work with iOS stock cam (and maybe other qr code readers)?

Thanks. sti0

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:36 (27 by maintainers)

github_iconTop GitHub Comments

3reactions
kbrcommented, Jan 18, 2022

So in the end it’s simpler than assumed.

Keep it simple is ok for me 😃

Checking the qr-code created by the router indeed report for all WPA encryptions plainly WPA as encryption type.

2reactions
kbrcommented, Feb 6, 2022

Yes, I also have some additional notes. Basically it is just to match the state of the router with input-values for qr-code creation to get the same output as the qr-code generated from the router. And to write tests, so we know when something changes. But as we are all volunteers, I have to find a timeslot for this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top 3 Ways to Fix QR Code Scanner Not Working On iPhone
Open the Settings app. · : Scroll down and tap on Camera. · Enable the Scan QR Codes option. · Open the Settings...
Read more >
Unable to scan QR Code via Camera
After the update from iOS 13 to iOS 14, the functionality to scan bar code via the Camera app stopped working. A border...
Read more >
Fixed: QR Code Not Working on iPhone after iOS 16 Update
Step 1: Head to the "Settings" application on your iPhone. · Step 2: Here, scroll down a bit and click on the "Camera"...
Read more >
Can't Scan QR Codes with iPhone / iPad Camera? Here's ...
Open the “Settings” app on the iPhone or iPad · Go to “Camera” · Locate “Scan QR Codes” and make sure that is...
Read more >
How to fix QR code scanner not working on iPhone?
Make sure the QR code scanner is enabled · Make sure you're in Photo mode · Make sure the camera is pointed correctly...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found