Skip to content

Commit

Permalink
Add example of using WiFi in host mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorRigby authored and fhunleth committed May 14, 2019
1 parent 0d7c601 commit e61d32d
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit e61d32d

Please sign in to comment.