Skip to content

Commit

Permalink
add Wifi config to smart_led/config/config.exs for #3
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Jul 5, 2020
1 parent 6de1b66 commit 013f3de
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions smart_led/config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,18 @@ config :logger, backends: [RingLogger]
if Mix.target() != :host do
import_config "target.exs"
end


# https://elixirschool.com/en/lessons/advanced/nerves/#setting-up-networking
# Statically assign an address
config :nerves_network, :default,
eth0: [
ipv4_address_method: :static,
ipv4_address: "192.168.1.101",
ipv4_subnet_mask: "255.255.255.0",
nameservers: ["8.8.8.8", "8.8.4.4"]
],
wlan0: [
ssid: System.get_env("NERVES_NETWORK_SSID"),
psk: System.get_env("NERVES_NETWORK_PSK")
]

0 comments on commit 013f3de

Please sign in to comment.