Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show debug information regarding the connection state of WpaSupplicant #68

Open
chmanie opened this issue Apr 27, 2018 · 0 comments
Open

Comments

@chmanie
Copy link

chmanie commented Apr 27, 2018

This resulted from a conversation in the nerves slack channel. As far as I understand one would like to register for the events the WpaSupplicant emits and handle them accordingly.

connor-rigby:
{:ok, _} = Elixir.Registry.register(Nerves.WpaSupplicant, interface, [])
  def handle_info({Nerves.WpaSupplicant, {:INFO, "WPA: 4-Way Handshake failed - pre-shared key may be incorrect"}, _})
  def handle_info({Nerves.WpaSupplicant, :"CTRL-EVENT-NETWORK-NOT-FOUND", _}, state)
  def handle_info({Nerves.WpaSupplicant, :"CTRL-EVENT-NETWORK-NOT-FOUND"}, state)

Something like

:ok = Nerves.Network.setup(interface, settings)
Nerves.Network.subscribte(interface)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant