VintageNetWizard.WiFiConfiguration (vintage_net_wizard v0.4.16)

Copy Markdown View Source

Module for working with various WiFi configurations

Summary

Functions

Get the key_mgmt type from the particular WiFi Configuration

Make a network config from a JSON request from the VintageNetWizard client

Convert a key_mgmt string into a key_mgmt

Get a human friendly name for the type of security of a WiFiConfiguration

Get the expected timeout in milisecs for a particular configuration

Types

key_mgmt()

@type key_mgmt() :: :none | :wpa_psk | :wpa_eap

Functions

get_key_mgmt(map)

@spec get_key_mgmt(map()) :: key_mgmt()

Get the key_mgmt type from the particular WiFi Configuration

json_to_network_config(params)

@spec json_to_network_config(map()) ::
  {:ok, map()}
  | {:error, VintageNetWizard.WiFiConfiguration.Params.param_error()}

Make a network config from a JSON request from the VintageNetWizard client

key_mgmt_from_string(arg1)

@spec key_mgmt_from_string(String.t()) ::
  {:ok, key_mgmt()} | {:error, :invalid_key_mgmt}

Convert a key_mgmt string into a key_mgmt

security_name(map)

@spec security_name(%{key_mgmt: key_mgmt()}) :: String.t()

Get a human friendly name for the type of security of a WiFiConfiguration

timeout(map)

@spec timeout(%{key_mgmt: key_mgmt()}) :: 30000 | 75000

Get the expected timeout in milisecs for a particular configuration