From e61d32d174857a12926e5f56db7158fc68715ba9 Mon Sep 17 00:00:00 2001 From: Connor Rigby Date: Tue, 14 May 2019 12:45:12 -0700 Subject: [PATCH] Add example of using WiFi in host mode --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3d1c698f..43fa137f 100644 --- a/README.md +++ b/README.md @@ -253,7 +253,6 @@ Example of WPA-EAP: iex> VintageNet.configure("wlan0", %{ type: VintageNet.Technology.WiFi, wifi: %{ - ipv4: %{method: :dhcp}, ssid: "testing", key_mgmt: :wpa_eap, scan_ssid: 1, @@ -269,6 +268,26 @@ iex> VintageNet.configure("wlan0", %{ }) ``` +Example of host mode: +(note this will not create a DHCP server) + +```elixir +iex> VintageNet.configure("wlan0", %{ + type: VintageNet.Technology.WiFi, + wifi: %{ + mode: :host, + ssid: "test ssid", + key_mgmt: :none + }, + ipv4: %{ + method: :static, + address: "192.168.24.1", + netmask: "255.255.255.0", + gateway: "192.168.24.1" + } +}) +``` + ### LTE ```elixir