Grizzly.CommandHandler behaviour (grizzly v0.15.6) View Source

Behaviour for how commands should handle incoming Z-Wave messages

Link to this section Summary

Link to this section Types

Specs

handle_response() ::
  {:complete, response :: any()} | {:continue, state :: any()}

Link to this section Callbacks

Specs

handle_ack(state :: any()) :: handle_response()
Link to this callback

handle_command(arg1, state)

View Source (optional)

Specs

handle_command(Grizzly.ZWave.Command.t(), state :: any()) :: handle_response()

Specs

init(any()) :: {:ok, state :: any()}