grizzly v0.8.6 Grizzly.Network View Source

Module for working with the Z-Wave network

Link to this section Summary

Functions

Check to see if the network is busy

Get a Node from the Z-Wave network

Get a list of nodes from the network

Get the current state of the Network

Check to see if the network is ready

Reset the network

Set the Z-Wave network state

Link to this section Functions

Check to see if the network is busy

Link to this function

get_node(node_id) View Source
get_node(Grizzly.Node.node_id()) :: {:ok, Grizzly.Node.t()} | {:error, any()}

Get a Node from the Z-Wave network

Link to this function

get_node_info(node_id) View Source
get_node_info(Grizzly.Node.node_id()) ::
  {:ok, map()} | {:error, :nack_response}

Link to this function

get_nodes() View Source
get_nodes() :: {:ok, [Grizzly.Node.t()]} | {:error, :unable_to_get_node_list}

Get a list of nodes from the network

Link to this function

get_state() View Source
get_state() :: Grizzly.Network.State.state()

Get the current state of the Network

Check to see if the network is ready

Link to this function

reset() View Source
reset() :: :ok | {:error, :network_busy}

Reset the network

Link to this function

set_state(state) View Source
set_state(Grizzly.Network.State.state()) :: :ok

Set the Z-Wave network state