View Source VintageNetWizard.APMode (vintage_net_wizard v0.4.16)

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

Link to this function

ap_mode_configuration(hostname, our_name, class_c_subnet)

View Source
@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 SSID
  • our_name - the name for clients to use when connecting to the wizard if
             not using the IP address.
  • class_c_subnet - A class C subnet to use for all of the IP addresses on
             this network.
Link to this function

exit_ap_mode(ifname, networks)

View Source
@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