grizzly v0.8.6 Grizzly.CommandClass.Battery.Get View Source

Command module for working with Battery command class GET command

Command Options:

  • :seq_number - The sequence number in the Z/IP Packet
  • :retries - The number to attempts to send the command (default 2)

Link to this section Summary

Functions

Callback implementation for Grizzly.Command.encode/1.

Callback implementation for Grizzly.Command.init/1.

Link to this section Types

Link to this type

t() View Source
t() :: %Grizzly.CommandClass.Battery.Get{
  retries: non_neg_integer(),
  seq_number: Grizzly.seq_number()
}

Link to this section Functions

Link to this function

encode(get) View Source
encode(t()) :: {:ok, binary()}

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, non_neg_integer()}
  | {:retry, t()}
  | {:queued, t()}

Callback implementation for Grizzly.Command.handle_response/2.

Link to this function

init(opts) View Source
init(keyword()) :: {:ok, t()}

Callback implementation for Grizzly.Command.init/1.