View Source VintageNetWiFi.WPSData (vintage_net_wifi v0.12.5)
Utilities for handling WPS data
Summary
Functions
Decode WPS data
Types
@type t() :: %{ optional(:credential) => t(), optional(:mac_address) => binary(), optional(:network_key) => binary(), optional(:network_index) => non_neg_integer(), optional(0..65536) => binary() }
A map containing WPS data
All keys are optional. Known keys use atoms. Unknown keys use their numeric value and their value is left as a raw binary.
Known keys:
:credential
- a map of WiFi credentials (also WPS data):mac_address
- a MAC address in string form (i.e.,"aa:bb:cc:dd:ee:ff"
):network_key
- a passphrase or PSK:network_index
- the key index
Functions
Decode WPS data
The WPS data is expected to be in hex string form like what the wpa_supplicant reports.