Search documentation of grizzly

# View Source Grizzly.ZWave.CommandClasses.NetworkManagementInstallationMaintenance (grizzly v7.4.2)

"NetworkManagementInstallationMaintenance" Command Class

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

# Summary

## Types

neighbor()
neighbor_param()
route_type()
rssi()
speed()
speeds()
statistic()
statistics()

## Functions

neighbor_speeds_from_byte(byte)
neighbor_speeds_to_byte(speeds)
repeaters_from_bytes(bytes)
repeaters_to_bytes(repeaters)
route_type_from_byte(byte)
route_type_to_byte(type)
rssi_from_byte(byte)

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

rssi_to_byte(rssi)

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

speed_from_byte(byte)
speed_to_byte(speed)
statistics_from_binary(arg)
statistics_to_binary(statistics)

# Types

Link to this type

# neighbor()

View Source

    @type neighbor() :: [neighbor_param()]

Link to this type

# neighbor_param()

View Source

    @type neighbor_param() ::
      {:node_id, byte()} | {:repeater?, boolean()} | {:speed, speeds()}

Link to this type

# route_type()

View Source

    @type route_type() ::
      :no_route
      | :last_working_route
      | :next_to_last_working_route
      | :set_by_application

Link to this type

# rssi()

View Source

    @type rssi() ::
      :rssi_not_available
      | :rssi_max_power_saturated
      | :rssi_below_sensitivity
      | -124..127

Link to this type

# speed()

View Source

    @type speed() :: :"9.6kbit/s" | :"40kbit/s" | :"100kbit/s" | :reserved

Link to this type

# speeds()

View Source

    @type speeds() :: [speed()]

Link to this type

# statistic()

View Source

    @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()}

Link to this type

# statistics()

View Source

    @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()

Link to this function

# rssi_from_byte(byte)

View Source

    @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.

Link to this function

# rssi_to_byte(rssi)

View Source

    @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.

Link to this function

# speed_from_byte(byte)

View Source

    @spec speed_from_byte(byte()) ::
      {:ok, speed()} | {:error, Grizzly.ZWave.DecodeError.t()}

Link to this function

# speed_to_byte(speed)

View Source

    @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