VintageNetWiFi.Cookbook.wpa_psk
You're seeing just the function
wpa_psk
, go back to VintageNetWiFi.Cookbook module for more information.
Specs
wpa_psk(String.t(), String.t()) :: {:ok, map()} | {:error, VintageNetWiFi.WPA2.invalid_ssid_error() | VintageNetWiFi.WPA2.invalid_passphrase_error()}
Return a configuration for connecting to a WPA-PSK network
Pass an SSID and passphrase. If the SSID and passphrase are ok, you'll get an
:ok
tuple with the configuration. If there's a problem, you'll get an error
tuple with a reason.