View Source Grizzly.CommandHandler behaviour (grizzly v3.0.0)

Behaviour for how commands should handle incoming Z-Wave messages

Link to this section Summary

Link to this section Types

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

Link to this section Callbacks

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

handle_command(t, state)

View Source (optional)
@callback handle_command(Grizzly.ZWave.Command.t(), state :: any()) :: handle_response()
@callback init(any()) :: {:ok, state :: any()}