grizzly v0.8.5 Grizzly.CommandClass.NetworkManagementProxy.NodeInfoCache View Source
Command module for working with the NetworkManagementProxy command class NODE_INFO_CACHE command
Command Options:
:cached_minutes_passed
- the minutes passed since the information was cached, if the cache has been longer than requested it will get the information:node_id
- the id of the node that the information is requested about:seq_number
- the sequence number used by 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() ::
{:cached_minutes_passed, 0..15}
| {:node_id, Grizzly.Node.node_id()}
| {:seq_number, Grizzly.seq_number()}
| {:retries, non_neg_integer()}
| {:pre_states, [Grizzly.Network.State.state()]}
opt() :: {:cached_minutes_passed, 0..15} | {:node_id, Grizzly.Node.node_id()} | {:seq_number, Grizzly.seq_number()} | {:retries, non_neg_integer()} | {:pre_states, [Grizzly.Network.State.state()]}
Link to this type
t()
View Source
t()
View Source
t() :: %Grizzly.CommandClass.NetworkManagementProxy.NodeInfoCache{
cached_minutes_passed: 0..15,
node_id: Grizzly.Node.node_id(),
pre_states: [Grizzly.Network.State.state()],
retries: non_neg_integer(),
seq_number: Grizzly.seq_number()
}
t() :: %Grizzly.CommandClass.NetworkManagementProxy.NodeInfoCache{ cached_minutes_passed: 0..15, node_id: Grizzly.Node.node_id(), pre_states: [Grizzly.Network.State.state()], retries: non_neg_integer(), seq_number: Grizzly.seq_number() }
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, report :: any()}
| {:retry, t()}
handle_response(t(), Grizzly.Packet.t()) :: {:continue, t()} | {:done, {:error, :nack_response}} | {:done, report :: any()} | {: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
.