vintage_net_wizard v0.2.3 VintageNetWizard.WiFiConfiguration behaviour View Source

Module for working with various WiFi configurations

Link to this section Summary

Functions

Marshal a parameter map into a type of WiFi Configuration

Get the key_mgmt type from the particular WiFi Configuration

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

Take a particular type of WiFi configuration and make into a configuration that vintage_net can use

Callbacks

A function on how to transform the map of params into a WiFiConfiguration

A function on how to take a WiFiConfiguration and make it into a useable vintage_net WiFi configuration.

Link to this section Types

Link to this type

key_mgmt()

View Source
key_mgmt() :: :none | :wpa_psk

Link to this section Functions

Link to this function

from_params(params)

View Source
from_params(map()) ::
  {:ok, t()}
  | {:error, VintageNetWizard.WiFiConfiguration.Params.param_error()}

Marshal a parameter map into a type of WiFi Configuration

Link to this function

get_key_mgmt(arg1)

View Source
get_key_mgmt(t()) :: key_mgmt()

Get the key_mgmt type from the particular WiFi Configuration

Link to this function

key_mgmt_from_string(arg1)

View Source
key_mgmt_from_string(String.t()) ::
  {:ok, key_mgmt()} | {:error, :invalid_key_mgmt}

Convert a key_mgmt string into a key_mgmt

Link to this function

security_name(arg1)

View Source
security_name(t()) :: String.t()

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

Get the expected timeout in milisecs for a particular configuration

Link to this function

to_vintage_net_configuration(config)

View Source
to_vintage_net_configuration(struct()) :: map()

Take a particular type of WiFi configuration and make into a configuration that vintage_net can use

Link to this section Callbacks

A function on how to transform the map of params into a WiFiConfiguration

Link to this callback

to_vintage_net_configuration(t)

View Source
to_vintage_net_configuration(t()) :: map()

A function on how to take a WiFiConfiguration and make it into a useable vintage_net WiFi configuration.