fritzconnection: QR code doesn't work with iOS stock cam
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
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 37 (28 by maintainers)
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.
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.
I decoded the generated QR codes from the FritzOS frontend . This is tested with my GUEST network:
WPA2 (CCMP):
WIFI:S:<<my ssid>>;T:WPA;P:<<my password>>;;WPA2+WPA3:WIFI:S:<<my ssid>>;T:WPA;P:<<my password>>;;Hotspot Mode:WIFI:S:<<my ssid>>;T:nopass;;;So I think it should be
WPAonly.Simone
Yup that’s it:
The Wi-Fi Alliance refers to their approved, interoperable implementation of the full 802.11i as WPA2Simone
Have done exactly that yesterday, but missed this information – for whatever reason …