VintageNetWiFi.quick_configure
quick_configure
, go back to VintageNetWiFi module for more information.
Specs
Configure WiFi using the most common settings
If your network requires a password (WPA PSK networks):
iex> VintageNetWiFi.quick_configure("ssid", "password")
:ok
If you're connecting to an open network, don't pass the password. Keep in
mind that if you're at a cafe or other location that has a captive portal,
VintageNetWiFi
isn't smart enough to bypass it.
iex> VintageNetWiFi.quick_configure("open_wifi_ssid")
:ok
Then run VintageNet.info
to see when the network connects. If you're
writing a program, run VintageNet.get(["interface", "wlan0", "connection"])
to get the connection status or subscribe to that property for change
notifications.
If you're on an enterprise network or use static IP addresses or need any
other special configuration handling, you'll need to call
VintageNet.configure/3
instead. See VintageNetWiFi.Cookbook
for help with
creating configurations or manually construct the configuration map.