GrovePi v0.6.1 GrovePi.Supervisor View Source

This is the top level supervisor that is started by the grovepi application. You can use this to start your own grovepi supervision tree by passing a prefix to the start_link function.

    iex> GrovePi.Supervisor.start_link(0x04, MyPrefix)
    {:ok, #PID<0.100.0}

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Callback invoked to start the supervisor and during hot code upgrades

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback invoked to start the supervisor and during hot code upgrades.

Developers typically invoke Supervisor.init/2 at the end of their init callback to return the proper supervision flags.

Callback implementation for Supervisor.init/1.

Link to this function start_link(grovepi_address, prefix) View Source