nerves_pack v0.1.1 NervesPack.WiFiWizardButton View Source

This GenServer starts the wizard if a button is depressed for long enough.

GPIO 26 is used for the button and the hold time is 5 seconds. These defaults can be configured in the config if desired:

config :nerves_pack,
  wifi_wizard_button_pin: 17,
  wifi_wizard_button_hold: 3_000

You can also disable using a button to start the WiFi wizard in the config as well:

config :nerves_pack, wifi_wizard_button: false

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Start the button monitor

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

start_link(opts \\ [])

View Source
start_link(list()) :: GenServer.on_start()

Start the button monitor