grizzly v0.8.5 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 binary 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()
View Source
add_mode() :: :learn | :add
add_mode() :: :learn | :add
Link to this type
add_mode_byte()
View Source
add_mode_byte()
View Source
add_mode_byte() :: 0 | 1
add_mode_byte() :: 0 | 1
Link to this type
default_set_status()
View Source
default_set_status()
View Source
default_set_status() :: :done | :busy
default_set_status() :: :done | :busy
Link to this type
dsk_get_report() View Source
Link to this type
learn_mode()
View Source
learn_mode()
View Source
learn_mode() :: :enable | :disable | :enable_routed
learn_mode() :: :enable | :disable | :enable_routed
Link to this type
learn_mode_byte()
View Source
learn_mode_byte()
View Source
learn_mode_byte() :: 0 | 1 | 2
learn_mode_byte() :: 0 | 1 | 2
Link to this type
learn_mode_status()
View Source
learn_mode_status()
View Source
learn_mode_status() :: :done | :failed | :failed_security
learn_mode_status() :: :done | :failed | :failed_security
Link to this section Functions
Link to this function
add_mode_from_byte(byte) View Source
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(int)
View Source
decode_default_set_status(6 | 7) :: default_set_status()
decode_default_set_status(6 | 7) :: default_set_status()
Link to this function
decode_dsk_report(arg)
View Source
decode_dsk_report(arg)
View Source
decode_dsk_report(binary()) :: dsk_get_report()
decode_dsk_report(binary()) :: dsk_get_report()
Decode the binary 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(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()
}
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(other)
View Source
encode_add_mode(add_mode()) ::
{:ok, add_mode_byte()} | {:error, :invalid_arg, any()}
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(mode)
View Source
encode_learn_mode(learn_mode()) ::
{:ok, learn_mode_byte()} | {:error, :invalid_arg, any()}
encode_learn_mode(learn_mode()) :: {:ok, learn_mode_byte()} | {:error, :invalid_arg, any()}