NervesLivebook.WiFiMonitor (nerves_livebook v0.15.6)
View SourceMonitor WiFi on startup to determine if AP mode needs to be enabled
This is mostly for devices that must have a WiFi connection in order to interact and make firmware changes. It checks:
- If any WiFi interface available to configure
- If any WiFi interface is configured
- If any WiFi interface is connected
If WiFi interface is configured, but not connected, then this monitor will watch for a successful connection message for 3 minutes. If no connection is established after that time, then it will set the WiFi interface to AP mode to allow the user to connect directly to the device
If no WiFi interface is present, then this will run until presence is detected.
Summary
Functions
Returns a specification to start this module under a supervisor.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec start_link(Keyword.t()) :: GenServer.on_start()