IEC60870.CS104.RedundancyGroup (ExIEC60870 v0.1.0)

Copy Markdown View Source

Configuration for a CS104 redundancy group (CS104_RedundancyGroup in cs104_slave.c).

If allowed_clients is empty ([]), this group acts as a catch-all redundancy group.

Summary

Types

t()

@type t() :: %IEC60870.CS104.RedundancyGroup{
  allowed_clients: [String.t()],
  name: String.t() | nil
}

Functions

add_allowed_client(group, ip_str)

@spec add_allowed_client(t(), String.t()) :: t()

catch_all?(redundancy_group)

@spec catch_all?(t()) :: boolean()

matches?(redundancy_group, ip_str)

@spec matches?(t(), String.t()) :: boolean()

new(name \\ nil, allowed_clients \\ [])

@spec new(String.t() | nil, [String.t()]) :: t()