lucaong
Configure multiple WiFi SSID
Hi all,
recently for I project I needed to be able to configure several WiFi SSID/PSK on the same device, with different priorities (so that the device would preferably connect to one network, but fallback to another one if the first is not available). I noticed that nerves_network does not currently seem to support that. The problem is that, when setting a new entry, nerves_wpa_supplicant currently removes all entries and force select of the new one.
I ended up implementing my own solution on top of nerves_network, if there’s interest in porting this feature to the main library I can share my code.
First Post!
outlog
well.. do please share - could also make for great blog/medium posts (along with the update thing)..
one thing I wonder is if you do a scan to find available/strongest ssid.. say I have 10+ aps in the known list (or even 100 or 1000).. then a scan for strongest/available aps and then matching against the list of known aps, would make a lot of sense..
anyways just a thought for perfection when/if something like this is hopefully added to nerves_network..
the use case is certainly there.
Most Liked
lucaong
Here’s a gist: Multiple SSIDs with NervesNetwork · GitHub
I am on the go now, but when I have more time I can work on a pull request to NervesNetwork and WpaSupplicant if there’s interest in it. I would love to hear opinions and comments from the Nerves maintainers.
GregMefford
As an update to this, @tmecklem and I independently started working on this feature without realizing that you had already posted here about it so long ago! ![]()
Thanks for posting that super-helpful gist! We will take a look and see if there’s anything in there we didn’t think about that we can integrate into the main library, if you’re OK with that.
tmecklem
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex









