Crate wifi_qr_code

Source
Expand description

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§

  • The credentials needed to completely connect to a wifi network.

Enums§

  • Declare whether the network is authenticated via WEP with a password, WPA with a password, or if the network is open.
  • The error correction level in a QR Code symbol.
  • Declare whether the network is broadcasting its availability.

Functions§

  • Encode credentials as raw image data. This is useful when generating the QR code and then manipulating it with an image library.
  • Encode credentials as a matrix of boolean values. This is useful when manually generating an image.
  • Encode credentials as a PNG image.
  • Encode credentials as an SVG image.