View Source Grizzly.CommandHandler behaviour (grizzly v8.6.6)
Behaviour for how commands should handle incoming Z-Wave messages
Summary
Types
Callbacks
@callback handle_ack(state :: any()) :: handle_response()
@callback handle_command(incoming_command :: Grizzly.ZWave.Command.t(), state :: any()) :: handle_response()
@callback init(original_command :: Grizzly.ZWave.Command.t(), init_state :: any()) :: {:ok, state :: any()}