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: :manualand 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
:config- aNervesHubLink.Configurator.Configstruct to use directly. Defaults to the result ofNervesHubLink.Configurator.build/0.:name- the name to register the supervisor under. Defaults toNervesHubLink.Supervisor.
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()) :: Supervisor.on_start()