View Source Grizzly.CommandHandlers.WaitReport (grizzly v8.5.3)

This handle is useful for when you want to wait for a particular report from the Z-Wave network. Most GET commands can use this handler.

Summary

Types

@type opt() :: {:complete_report, atom()}
@type state() :: %{complete_report: atom()}

Functions

@spec handle_ack(state()) :: {:continue, state()}

Callback implementation for Grizzly.CommandHandler.handle_ack/1.

Link to this function

handle_command(command, state)

View Source
@spec handle_command(Grizzly.ZWave.Command.t(), state()) ::
  {:continue, state()} | {:complete, Grizzly.ZWave.Command.t()}

Callback implementation for Grizzly.CommandHandler.handle_command/2.

@spec init([opt()]) :: {:ok, state()}

Callback implementation for Grizzly.CommandHandler.init/1.