Skip to main content

Module cov_subscription

Module cov_subscription 

Source
Expand description

Encode and decode the constructed values carried by Device Active_COV_Subscriptions and Active_COV_Multiple_Subscriptions.

Each subscription is a bare Clause 21 sequence. A BACnetLIST concatenates those sequences without adding a list or per-entry wrapper, so each decoder reads one element at offset and returns the offset just past it: walking a list calls it at each element’s start (#1046).

Functions§

decode_cov_multiple_subscription
Decode one bare BACnetCOVMultipleSubscription at offset; returns it and the offset past its closing [4] tag, in the layout encode_cov_multiple_subscription writes. Each nested list holds at most MAX_FRAMED_ITEMS entries.
decode_cov_subscription
Decode one bare BACnetCOVSubscription at offset; returns it and the offset past its last member.
encode_cov_multiple_subscription
Encode one bare BACnetCOVMultipleSubscription sequence: [0] recipient process, [1] form, [2] time remaining, [3] maximum notification delay and [4] the nested specifications, each an [0] object identifier plus [1] references of [0] BACnetPropertyReference, optional [1] REAL increment and [2] timestamped flag. A recipient MAC past BACnetAddress::MAX_MAC_LEN octets is an error, returned before buf changes (#1156).
encode_cov_multiple_subscription_list
Encode a BACnetLIST of BACnetCOVMultipleSubscription in slice order. Every recipient is checked before buf changes, so a refused list writes nothing.
encode_cov_subscription
Encode one bare BACnetCOVSubscription sequence. A recipient MAC past BACnetAddress::MAX_MAC_LEN octets is an error, returned before buf changes (#1156).
encode_cov_subscription_list
Encode a BACnetLIST of BACnetCOVSubscription in slice order. Every recipient is checked before buf changes, so a refused list writes nothing.