grizzly v0.8.4 Grizzly.CommandClass.NetworkManagementInclusion.NodeRemove View Source

A module for working with the NODE_REMOVE command

This command is used for activing or de-activing the node remove mode.

Link to this section Summary

Types

Mode for the controller to use during exclusion

t()

Link to this section Types

Link to this type

mode() View Source
mode() :: :any | :stop

Mode for the controller to use during exclusion

  • :any - remove any type of node from the network (default)
  • :stop - stop the node removal process
Link to this type

t() View Source
t() :: %Grizzly.CommandClass.NetworkManagementInclusion.NodeRemove{
  exec_state: Grizzly.Network.State.state(),
  mode: Grizzly.CommandClass.NetworkManagementInclusion.remove_mode() | byte(),
  pre_states: [Grizzly.Network.State.state()],
  seq_number: Grizzly.seq_number(),
  timeout: non_neg_integer()
}

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()) ::
  {:continue, t()}
  | {:done, {:error, :nack_response}}
  | {:done, Grizzly.Node.node_id()}
  | {:done, {:error, :node_remove_failed}}

Callback implementation for Grizzly.Command.handle_response/2.

Callback implementation for Grizzly.Command.init/1.