zwave v0.0.1 ZWave

ZWave module.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Get node informations

Callback invoked to start the supervisor and during hot code upgrades.

Send a command to a node

Start a network

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

get_node_info(net, node)

Get node informations

Returns :ok.

Examples

iex> ZWave.get_node_info("stick1", "node_3")
:ok

Callback invoked to start the supervisor and during hot code upgrades.

Developers typically invoke Supervisor.init/2 at the end of their init callback to return the proper supervision flags.

Callback implementation for Supervisor.init/1.

Link to this function

send_command(net, node, cmd)

Send a command to a node

Returns :ok.

Examples

iex> ZWave.send_command("stick1", "node_3", {:basic_set, 100})
:ok
Link to this function

start(device, network)

Start a network

Returns :ok.

Examples

iex> ZWave.start("/dev/tty.usbmodem14101", "net1")
:ok
Link to this function

start_child(defn)