grizzly v0.7.0 Grizzly.CommandClass.AssociationGroupInfo.GroupInfoGet View Source

Command module for working the Association Group Info command class ASSOCIATION_GROUP_INFO_GET command

Command Options:

  • :seq_number - the sequence number used by the Z/IP packet
  • :retries - the number of attempts to send the command (default 2)
  • :group - The group identifier, or nil to get info on all groups

Link to this section Summary

Link to this section Types

Link to this type

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

Link to this type

t() View Source
t() :: %Grizzly.CommandClass.AssociationGroupInfo.GroupInfoGet{
  group: term(),
  retries: term(),
  seq_number: term()
}

Link to this section Functions

Link to this function

encode(raw_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,
     {:done, Grizzly.CommandClass.AssociationGroupInfo.groups_info_report()}}
  | {:retry, t()}
  | {:queued, 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.