grizzly v0.8.0 Grizzly.CommandClass.ScheduleEntryLock.SupportedGet View Source

Command for working with SCHEDULE_ENTRY_LOCK command class SUPPORTED_GET command

This command is used to request the number of schedule slots each type of schedule the device supports for each user.

Command Options:

  • :seq_number - The sequence number used in the Z/IP packet
  • :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()} | {:retries, non_neg_integer()}

Link to this type

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

Link to this section Functions

Link to this function

encode(supported_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, {:ok, Grizzly.CommandClass.ScheduleEntryLock.supported_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.