grizzly v0.7.0 Grizzly.CommandClass.Configuration.Set View Source
Command module for working with the Configuration command class SET command
Command Options:
:config_param
- The parameter for the configuration item outlined in the device's Z-Wave spec:size
- The amount of bytes in terms of bytes: 1 = 1 byte, 2 = 2 bytes, etc.:args
- The arguments to the parameter as outlined in the device's Z-Wave spec:seq_number
- The sequence number used for the Z/IP packet:retries
- The number of 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.handle_response/2
.
Callback implementation for Grizzly.Command.init/1
.
Link to this section Types
Link to this type
opt()
View Source
opt()
View Source
opt() ::
{:config_param, byte()}
| {:size, non_neg_integer()}
| {:arg, Grizzly.CommandClass.Configuration.param_arg()}
| {:seq_number, Grizzly.seq_number()}
| {:retries, non_neg_integer()}
opt() :: {:config_param, byte()} | {:size, non_neg_integer()} | {:arg, Grizzly.CommandClass.Configuration.param_arg()} | {:seq_number, Grizzly.seq_number()} | {:retries, non_neg_integer()}
Link to this type
t()
View Source
t()
View Source
t() :: %Grizzly.CommandClass.Configuration.Set{
arg: Grizzly.CommandClass.Configuration.param_arg(),
config_param: byte(),
retries: non_neg_integer(),
seq_number: Grizzly.seq_number(),
size: non_neg_integer()
}
t() :: %Grizzly.CommandClass.Configuration.Set{ arg: Grizzly.CommandClass.Configuration.param_arg(), config_param: byte(), retries: non_neg_integer(), seq_number: Grizzly.seq_number(), size: non_neg_integer() }
Link to this section Functions
Link to this function
encode(command)
View Source
encode(command)
View Source
encode(t()) :: {:ok, binary()} | {:error, Grizzly.Command.EncodeError.t()}
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(command, packet)
View Source
handle_response(t(), Grizzly.Packet.t()) ::
{:continue, t()}
| {:done, {:error, :nack_response}}
| {:done, :ok}
| {:retry, t()}
| {:queued, t()}
handle_response(t(), Grizzly.Packet.t()) :: {:continue, t()} | {:done, {:error, :nack_response}} | {:done, :ok} | {:retry, t()} | {:queued, t()}
Callback implementation for Grizzly.Command.handle_response/2
.
Link to this function
init(opts) View Source
Callback implementation for Grizzly.Command.init/1
.