Search documentation of grizzly

# View Source Grizzly.CommandHandler behaviour (grizzly v7.4.2)

Behaviour for how commands should handle incoming Z-Wave messages

# Summary

## Types

handle_response()

## Callbacks

handle_ack(state)
handle_command(t, state)
init(any)

# Types

Link to this type

# handle_response()

View Source

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

# Callbacks

Link to this callback

# handle_ack(state)

View Source

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

Link to this callback

# init(any)

View Source

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