Add QR code to share hotspot details

Sailfish OS has a builtin ability to create a WiFi hotspot. Having a way to generate a QR code from the credentials details would make it even easier to use.

One could navigate to it either from pull down menu or by swyping to another view.

16 Likes

Good idea! Suggestion: Settings / System / Hotspot / Pulldown / Show QR code

or

Settings / System / Hotspot / show QR code below the settings there.

1 Like

I wanted to ask about it and about the possibility of sharing the password WiFi with code QR Also, the ability to connect WiFi with code QR

Both ways please! Meaning, SFOS can also read a wifi QR code and connect to it.

1 Like

For the latter I have a patch somewhere - not for QR decoding, but a decoded QR code text can be understood by the Settings app.

An external app will have to do the decoding.

Maybe the other way around can also be done without adding a QR endoder/decoder to the Settings app: make it generate the correct string and send that via the Share API to an encoding app.

See also:

My patch is here, but I haven’t used or tested it in a while:

6 Likes

A suggestion to remember:

Jolla was talking about open-sourcing the Camera app IIRC, so maybe that can be added then.

7 Likes

Thanks for bringing this. I made double effort to find any dupe both using built in search and by using external search engine with scope limited to site:forum.sailfishos.org. TBH, I was surprised there seemed to be no dupes.

patch not work for me sailfishos 5.0.0.70

Updated now, pls try again.

1 Like

I guess a possible design would be:

  1. Extend the dbus service GitHub - sailfishos/qr-filter-qml-plugin to be able to encode a string. (Security problem: should we send wifi secrets via dbus? Maybe use an anon file descriptor instead of text over dbus, as it already works with FDs.)
  2. make the Settings hotspot page able to call this new service to generate a code image.
  3. Display the image in Settings.
5 Likes

Working great now, thanks

4 Likes