View Source Grizzly.ZWave.CommandClasses.NetworkManagementInstallationMaintenance (grizzly v8.0.1)

"NetworkManagementInstallationMaintenance" Command Class

The Network Management Installation and Maintenance Command Class is used to access statistical data.

Summary

Types

@type neighbor() :: [neighbor_param()]
@type neighbor_param() ::
  {:node_id, byte()} | {:repeater?, boolean()} | {:speed, speeds()}
@type route_type() ::
  :no_route
  | :last_working_route
  | :next_to_last_working_route
  | :set_by_application
@type rssi() ::
  :rssi_not_available
  | :rssi_max_power_saturated
  | :rssi_below_sensitivity
  | -124..127
@type speed() :: :"9.6kbit/s" | :"40kbit/s" | :"100kbit/s" | :reserved
@type speeds() :: [speed()]
@type statistic() ::
  {:route_changes, byte()}
  | {:transmission_count, byte()}
  | {:neighbors, [neighbor()]}
  | {:packet_error_count, byte()}
  | {:sum_of_transmission_times, non_neg_integer()}
  | {:sum_of_transmission_times_squared, non_neg_integer()}
@type statistics() :: [statistic()]

Functions

Link to this function

neighbor_speeds_from_byte(byte)

View Source
@spec neighbor_speeds_from_byte(byte()) :: {:ok, speeds()}
Link to this function

neighbor_speeds_to_byte(speeds)

View Source
@spec neighbor_speeds_to_byte(speeds()) :: byte()
Link to this function

repeaters_from_bytes(bytes)

View Source
Link to this function

repeaters_to_bytes(repeaters)

View Source
Link to this function

route_type_from_byte(byte)

View Source
@spec route_type_from_byte(any()) ::
  {:error, Grizzly.ZWave.DecodeError.t()} | {:ok, route_type()}
Link to this function

route_type_to_byte(type)

View Source
@spec route_type_to_byte(route_type()) :: byte()
@spec rssi_from_byte(byte()) :: rssi()

Decodes the given byte to an 8-bit signed integer (or one of the special values defined in the spec).

NOTE: In order to support Z/IP Gateway quirks, this function accepts values outside of the range specified in the spec (-32..-128). This function may return any value in the range -128..124.

@spec rssi_to_byte(rssi()) :: byte()

Encodes the given RSSI value to an 8-bit signed integer.

NOTE: In order to support Z/IP Gateway quirks, this function accepts values outside of the range specified in the spec (-32..-128). Values out of range for an 8-bit signed integer will overflow.

@spec speed_from_byte(byte()) ::
  {:ok, speed()} | {:error, Grizzly.ZWave.DecodeError.t()}
@spec speed_to_byte(speed()) :: byte()
Link to this function

statistics_from_binary(arg)

View Source
Link to this function

statistics_to_binary(statistics)

View Source