grizzly v0.5.0 Grizzly.CommandClass.NetworkManagementBasic.LearnModeSet View Source
Command module for working with the NetworkManagementBasic command class LEARN_MODE_SET command
Command Options:
:seq_number
- the sequence number used for the Z/IP packet:retries
- the number of attempts to send the command (default 2):mode
- either :enable, :enable_routed, :disable (:enable = accept only being included in direct range - default mode)
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
mode()
View Source
mode()
View Source
mode() :: :enable | :disable
mode() :: :enable | :disable
Link to this type
opt()
View Source
opt()
View Source
opt() :: {:seq_number, Grizzly.seq_number()} | {:retries, non_neg_integer()}
opt() :: {:seq_number, Grizzly.seq_number()} | {:retries, non_neg_integer()}
Link to this type
t()
View Source
t()
View Source
t() :: %Grizzly.CommandClass.NetworkManagementBasic.LearnModeSet{
exec_state: Grizzly.Network.State.state(),
mode: mode(),
pre_states: [Grizzly.Network.State.state()],
retries: non_neg_integer(),
seq_number: Grizzly.seq_number(),
timeout: non_neg_integer()
}
t() :: %Grizzly.CommandClass.NetworkManagementBasic.LearnModeSet{ exec_state: Grizzly.Network.State.state(), mode: mode(), pre_states: [Grizzly.Network.State.state()], retries: non_neg_integer(), seq_number: Grizzly.seq_number(), timeout: 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, arg2)
View Source
handle_response(command, arg2)
View Source
handle_response(t(), Grizzly.Packet.t()) ::
{:continue, t()}
| {:done, {:error, :nack_response}}
| {:done, :done | :busy}
| {:retry, t()}
handle_response(t(), Grizzly.Packet.t()) :: {:continue, t()} | {:done, {:error, :nack_response}} | {:done, :done | :busy} | {:retry, t()}
Callback implementation for Grizzly.Command.handle_response/2
.
Link to this function
init(opts) View Source
Callback implementation for Grizzly.Command.init/1
.