Grizzly.BackgroundRSSIMonitor (grizzly v8.12.0)

View Source

Monitors the background RSSI on all Z-Wave channels and raises an alarm if it exceeds a configurable threshold.

Summary

Functions

Returns a specification to start this module under a supervisor.

Returns the average background RSSI values over the configured sampling period.

Types

opt()

@type opt() ::
  {:classic_threshold, integer()}
  | {:lr_threshold, integer()}
  | {:sample_interval, integer() | false}
  | {:name, GenServer.name()}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_averages(server \\ __MODULE__)

@spec get_averages(GenServer.server()) :: [
  channels: [number()],
  long_range_primary_channel: number(),
  long_range_secondary_channel: number()
]

Returns the average background RSSI values over the configured sampling period.

start_link(opts \\ [])

@spec start_link([opt()]) :: GenServer.on_start()