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

Behaviour for how commands should handle incoming Z-Wave messages

Summary

Types

handle_response()

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

Callbacks

handle_ack(state)

@callback handle_ack(state :: any()) :: handle_response()

handle_command(t, state)

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

init(any)

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