Skip to main content

Module wifi

Module wifi 

Source
Expand description

WiFi configuration (WIFI:) parsing and encoding.

The wire format is WIFI:T:<auth>;S:<ssid>;P:<password>;; with optional ;H:true for hidden networks, though the parser accepts the fields in any order. The characters \\ ; , " : are backslash-escaped inside the SSID and password. The qrcode-rs facade uses this same module for its convenience constructor, so encode_wifi and WifiConfig::parse stay symmetric.

Structs§

WifiConfig
A parsed WiFi configuration recovered from a WIFI: QR payload.

Enums§

WifiSecurity
WiFi authentication mode for a WifiConfig.

Functions§

encode_wifi
Encodes a WiFi configuration into the WIFI: wire format consumed by phone cameras.