View Source VintageNetWizard.APMode (vintage_net_wizard v0.4.17)
This module contains utilities for configuration VintageNet in AP Mode
Summary
Functions
Return a configuration to put VintageNet into AP mode
Change the WIFi module to exit AP mode and apply the wifi configs.
Change the WiFi module into access point mode
Return SSID that is used for AP Mode
Functions
@spec ap_mode_configuration(String.t(), String.t(), :inet.ip4_address()) :: map()
Return a configuration to put VintageNet into AP mode
hostname
- the device's hostname which will be modified to be the AP's SSIDour_name
- the name for clients to use when connecting to the wizard ifnot using the IP address.
class_c_subnet
- A class C subnet to use for all of the IP addresses onthis network.
@spec exit_ap_mode(VintageNet.ifname(), [map()]) :: :ok | {:error, any()}
Change the WIFi module to exit AP mode and apply the wifi configs.
@spec into_ap_mode(VintageNet.ifname()) :: :ok | {:error, any()}
Change the WiFi module into access point mode
@spec ssid() :: String.t()
Return SSID that is used for AP Mode