[][src]Crate wifi_qr_code

Wifi QR codes are a way to encode wifi connection information and credentials into a QR code so that it can be scanned. They are supported via the latest Android and iOS phones, as well as other platforms.

It is important to take into account that QR codes do not provide any security mechanisms that would prevent someone from just reading the code and recovering the password for the network. Android requires that you re-authenticate before it will display the QR code on the screen to make sure the user is allowed to share that information, for example.

Structs

WifiCredentials

The credentials needed to completely connect to a wifi network.

Enums

AuthenticationType

Declare whether the network is authenticated via WEP with a password, WPA with a password, or if the network is open.

QrCodeEcc

The error correction level in a QR Code symbol.

Visibility

Declare whether the network is broadcasting its availability.

Functions

encode_as_image

Encode credentials as raw image data. This is useful when generating the QR code and then manipulating it with an image library.

encode_as_matrix

Encode credentials as a matrix of boolean values. This is useful when manually generating an image.

encode_as_png

Encode credentials as a PNG image.

encode_as_svg

Encode credentials as an SVG image.