# `NervesHubLink.Supervisor`
[🔗](https://github.com/nerves-hub/nerves_hub_link/blob/v2.14.0/lib/nerves_hub_link/supervisor.ex#L8)

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

  * `:config` - a `NervesHubLink.Configurator.Config` struct to use directly.
    Defaults to the result of `NervesHubLink.Configurator.build/0`.
  * `:name` - the name to register the supervisor under. Defaults to
    `NervesHubLink.Supervisor`.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `start_link`

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
