grizzly v0.8.0 Grizzly.CommandClass.NetworkManagementBasic View Source

Link to this section Summary

Functions

Take the byte of the add mode and decode it into :learn or :add.

Decode the bytestring that is returned from Z-Wave that has the DSK report

Encode the add mode :learn or :add into a byte

Link to this section Types

Link to this type

add_mode() View Source
add_mode() :: :learn | :add

Link to this type

add_mode_byte() View Source
add_mode_byte() :: 0 | 1

Link to this type

default_set_status() View Source
default_set_status() :: :done | :busy

Link to this type

dsk_get_report() View Source
dsk_get_report() :: %{add_mode: add_mode(), dsk: binary()}

Link to this type

learn_mode() View Source
learn_mode() :: :enable | :disable | :enable_routed

Link to this type

learn_mode_byte() View Source
learn_mode_byte() :: 0 | 1 | 2

Link to this type

learn_mode_status() View Source
learn_mode_status() :: :done | :failed | :failed_security

Link to this section Functions

Link to this function

add_mode_from_byte(byte) View Source
add_mode_from_byte(byte()) :: add_mode()

Take the byte of the add mode and decode it into :learn or :add.

Link to this function

decode_default_set_status(int) View Source
decode_default_set_status(6 | 7) :: default_set_status()

Link to this function

decode_dsk_report(arg) View Source
decode_dsk_report(binary()) :: dsk_get_report()

Decode the bytestring that is returned from Z-Wave that has the DSK report

Link to this function

decode_learn_mode_set_status(int, new_node_id) View Source
decode_learn_mode_set_status(6 | 7 | 9, non_neg_integer()) :: %{
  status: learn_mode_status(),
  new_node_id: non_neg_integer()
}

Link to this function

encode_add_mode(other) View Source
encode_add_mode(add_mode()) ::
  {:ok, add_mode_byte()} | {:error, :invalid_arg, any()}

Encode the add mode :learn or :add into a byte

Link to this function

encode_learn_mode(mode) View Source
encode_learn_mode(learn_mode()) ::
  {:ok, learn_mode_byte()} | {:error, :invalid_arg, any()}