nerves_hub v0.5.1 NervesHub.Supervisor

Supervisor for maintaining a channel connection to a NervesHub server

This module starts the GenServers that maintain a Phoenix channel connection to the NervesHub server and respond to update requests. It isn't started automatically, so you should add it to one of your OTP application's supervision trees:

  defmodule Example.Application do
    use Application

    def start(_type, _args) do

      opts = [strategy: :one_for_one, name: Example.Supervisor]
      children = [
        NervesHub.Supervisor
      ] ++ children(@target)
      Supervisor.start_link(children, opts)
    end
  end

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Start the NervesHub supervision tree

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

start_link(socket_opts)
start_link(keyword()) :: Supervisor.on_start()

Start the NervesHub supervision tree