grizzly v0.8.2 Grizzly.CommandClass.SwitchMultilevel.Set View Source
Command module for working with SWITCH_MULTILEVEL SET command.
command options:
:value
- A number between 0 and 99 for the switch level:seq_number
- The sequence number for the Z/IP Packet
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
opts()
View Source
opts()
View Source
opts() ::
{:value, Grizzly.CommandClass.SwitchMultilevel.switch_state()}
| {:seq_number, Grizzly.seq_number()}
opts() :: {:value, Grizzly.CommandClass.SwitchMultilevel.switch_state()} | {:seq_number, Grizzly.seq_number()}
Link to this type
t()
View Source
t()
View Source
t() :: %Grizzly.CommandClass.SwitchMultilevel.Set{
seq_number: Grizzly.seq_number(),
value: Grizzly.CommandClass.SwitchMultilevel.switch_state()
}
t() :: %Grizzly.CommandClass.SwitchMultilevel.Set{ seq_number: Grizzly.seq_number(), value: Grizzly.CommandClass.SwitchMultilevel.switch_state() }
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, arg2)
View Source
handle_response(command, arg2)
View Source
handle_response(t(), Grizzly.Packet.t()) ::
{:continue, t()} | {:done, {:error, :nack_response}} | {:done, :ok}
handle_response(t(), Grizzly.Packet.t()) :: {:continue, t()} | {:done, {:error, :nack_response}} | {:done, :ok}
Callback implementation for Grizzly.Command.handle_response/2
.
Link to this function
init(opts) View Source
Callback implementation for Grizzly.Command.init/1
.