A BACnetRouterEntry describes one first-hop router that can be used to reach a remote BACnet network.
It is the element type of the Routing_Table property of the Network Port
object. The table is normally maintained automatically by the network layer
from received I-Am-Router-To-Network / I-Could-Be-Router-To-Network messages,
but may also be configured statically.
ASN.1 (ASHRAE 135)
BACnetRouterEntry ::= SEQUENCE {
network-number [0] Unsigned16,
mac-address [1] OCTET STRING,
status [2] ENUMERATED {
available (0),
busy (1),
disconnected (2)
},
performance-index [3] Unsigned8 OPTIONAL
}Status values
:available- the router is ready to forward traffic:busy- the router is temporarily unable to accept more traffic:disconnected- the router is known but currently unreachable
The optional performance_index is the value carried in an
I-Could-Be-Router-To-Network message (Clause 6.4.3).
Summary
Functions
Encodes a BACnetRouterEntry into application tags encoding.
Parses a BACnetRouterEntry from application tags encoding.
Validates whether the given RouterEntry is well-formed.
Types
Functions
@spec encode(t(), Keyword.t()) :: {:ok, BACnet.Protocol.ApplicationTags.encoding_list()} | {:error, term()}
Encodes a BACnetRouterEntry into application tags encoding.
@spec parse(BACnet.Protocol.ApplicationTags.encoding_list()) :: {:ok, {t(), rest :: BACnet.Protocol.ApplicationTags.encoding_list()}} | {:error, term()}
Parses a BACnetRouterEntry from application tags encoding.
Validates whether the given RouterEntry is well-formed.