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