vintage_net v0.6.2 VintageNet.WiFi.WPASupplicant View Source

Control a wpa_supplicant instance for an interface.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Initiate a scan of WiFi networks

Start a GenServer to manage communication with a wpa_supplicant

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Initiate a scan of WiFi networks

Start a GenServer to manage communication with a wpa_supplicant

Arguments:

  • :wpa_supplicant - the path to the wpa_supplicant binary *:wpa_supplicant_conf_path - the path to the supplicant's conf file

    • :ifname - the network interface
    • :control_path - the path to the wpa_supplicant control file
    • :keep_alive_interval - how often to ping the wpa_supplicant to make sure it's still alive (defaults to 60,000 seconds)
  • :ap_mode - true if the WiFi module and wpa_supplicant are in access point mode