Open drobakowski opened 7 years ago
Thanks for reporting this problem! 🎈 My guess is that we're not properly handling the case where the SSID is hidden and we expect it to be present in one of the data structures.
We have recently been working on consolidating and improving the Nerves networking code into a different library found here: https://github.com/nerves-project/nerves_network
Would you be willing to try that out instead of InterimWiFi and see if you have the same problem? The code is somewhat significantly different than InterimWiFi, so I'd prefer to focus our efforts there.
I have no idea what this project is about but Google brought me here when I was trying to deal with CTRL-EVENT-NETWORK-NOT-FOUND
errors. Finally, this link solved my problem. The key point is scan_ssid=1
.
Thank you for taking the time to report this, @hefanbo! Now that we have the clue, we can pretty easily test that this is working on nerves_network
and make the adjustment as needed.
Trying to connect to a hidden network results in a
CTRL-EVENT-NETWORK-NOT-FOUND
errors. After reconfiguring the network to not hide its SSID my RPi can successfully connect to it:00:14:50.965 [info] WiFiManager(wlan0, associate_wifi) got event :wifi_connected
.I'm running Erlang 19.3 / Elixir 1.4.4 &
target=rpi
/8192cu
with the following configuration:deps in mix.exs:
mix.lock:
config.exs: