grizzly v0.7.0 Grizzly.CommandClass.Version.CommandClassGet View Source

Command module for working with VERSION_COMMAND_CLASS command class COMMAND_CLASS_GET command

Command Options:

  • :seq_number - the sequence number used by the Z/IP packet
  • :command_class - the command class you want to get the version for
  • :retries - the number of attempts to send the command (default 2)

Link to this section Summary

Link to this section Types

Link to this type

opt() View Source
opt() ::
  {:seq_number, Grizzly.seq_number()}
  | {:command_class, atom()}
  | {:retries, non_neg_integer()}

Link to this type

t() View Source
t() :: %Grizzly.CommandClass.Version.CommandClassGet{
  command_class: atom(),
  retries: non_neg_integer(),
  seq_number: Grizzly.seq_number()
}

Link to this section Functions

Link to this function

encode(command) View Source
encode(t()) :: {:ok, binary()} | {:error, Grizzly.Command.EncodeError.t()}

Callback implementation for Grizzly.Command.encode/1.

Link to this function

handle_response(command, packet) View Source
handle_response(t(), Grizzly.Packet.t()) ::
  {:continue, t()}
  | {:done, {:error, :nack_response}}
  | {:done, {:ok, non_neg_integer()}}
  | {:retry, t()}

Callback implementation for Grizzly.Command.handle_response/2.

Link to this function

init(opts) View Source
init([opt()]) :: {:ok, t()}

Callback implementation for Grizzly.Command.init/1.