View Source Grizzly.CommandHandler behaviour (grizzly v8.3.0)

Behaviour for how commands should handle incoming Z-Wave messages

Summary

Types

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

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()}