grizzly v0.6.4 Grizzly.CommandClass.ZipNd.InvNodeSolicitation View Source

Command module for working with ZIP_ND INV_NODE_SOLICITATION command

Request the IPv6 address of a device on the Z/IP Gateway network

command options:

  • :node_id - The node id for the request

Link to this section Summary

Link to this section Types

Link to this type

opt() View Source
opt() ::
  {:node_id, Grizzly.Node.node_id()}
  | {:pre_states, [Grizzly.Network.State.state()]}

Link to this type

t() View Source
t() :: %Grizzly.CommandClass.ZipNd.InvNodeSolicitation{
  node_id: Grizzly.Node.node_id(),
  pre_states: [Grizzly.Network.State.state()]
}

Link to this section Functions

Link to this function

encode(command) View Source
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(t(), Grizzly.Packet.t()) ::
  {:done, {:ok, {:node_ip, Grizzly.Node.node_id(), :inet.ip_address()}}}

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.