NervesHubLink.Supervisor (nerves_hub_link v2.14.0)

Copy Markdown View Source

Supervisor for the NervesHubLink connection processes.

By default :nerves_hub_link starts this supervisor automatically as part of its application (see the "Supervision" section of the configuration guide). If you'd rather own the lifecycle yourself, set:

config :nerves_hub_link, start: :manual

and add this supervisor to your own supervision tree, optionally passing a fully built NervesHubLink.Configurator.Config:

children = [
  {NervesHubLink.Supervisor, config: MyApp.build_nh_config()}
]

When no :config is provided, the configuration is built from the application environment via NervesHubLink.Configurator.build/0, which is the same behaviour used when the supervisor is auto-started.

Options

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

@spec start_link(keyword()) :: Supervisor.on_start()