Skip to content

Commit

Permalink
Add AP mode example to cookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed Jan 20, 2020
1 parent 6b58a3e commit fb1e45d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docs/cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,38 @@ Protected EAP (PEAP) is a common authentication protocol for enterprise WiFi net
### Enterprise WiFi (EAP-TLS)

TBD

### Access point WiFi

Some WiFi modules can be run in access point mode. This makes it possible to
create configuration wizards and captive portals. Configuration of this is more
involved. Here is a basic configuration:

```elixir
%{
type: VintageNetWiFi,
vintage_net_wifi: %{
networks: [
%{
mode: :ap,
ssid: "test ssid",
key_mgmt: :none
}
]
},
ipv4: %{
method: :static,
address: "192.168.24.1",
netmask: "255.255.255.0"
},
dhcpd: %{
start: "192.168.24.2",
end: "192.168.24.10"
}
}
```

See the
[vintage_net_wizard](https://github.com/nerves-networking/vintage_net_wizard)
for an example of a project that uses AP mode and a web server for WiFi
configuration.

0 comments on commit fb1e45d

Please sign in to comment.