Skip to main content

Module notification_class

Module notification_class 

Source
Expand description

NotificationClass object per ASHRAE 135-2020 Clause 12.31.

§Recipient-list day/time convention

RECIPIENT_LIST entries are BACnetDestination (Clause 12.15.5). The valid_days field is a BACnetDaysOfWeek bit string defined as BIT STRING { monday(0), tuesday(1), ..., sunday(6) } (Clause 21): bit 0 is Monday and bit 6 is Sunday in the in-memory u8. Callers must build today_bit with the same convention (1 << dow where dow = 0 on Monday). On the wire both bit strings are packed MSB-first per Clause 20.2.10 — monday(0) at 0x80 of the valid_days octet (unused_bits: 1), to-offnormal(0) at 0x80 of the transitions octet (unused_bits: 5) — via bacnet_types::bitstring::pack_octet/unpack_octet, which reverse the in-memory bit0-first byte.

from_time/to_time are BACnet Time values interpreted in the device’s local time, derived from the wall clock plus the Device object’s UTC_Offset property (signed minutes) at the sender. A window with to_time < from_time (e.g. 22:00–02:00) crosses midnight and is active outside the [from, to] interval; see [time_in_window].

Structs§

NotificationClass
BACnet NotificationClass object.

Enums§

RecipientLookupOutcome
The complete outcome of looking up and selecting Notification Class recipients.

Functions§

filter_recipient_list
Filter an encoded RECIPIENT_LIST property value by day, time, and transition.
get_notification_recipients
Get notification recipients for a given class number and transition.
get_notification_recipients_strict
Strict variant of get_notification_recipients for fail-closed routing.
local_day_and_time
Derive the local day-of-week bit and time-of-day for recipient filtering.
lookup_notification_recipients
Look up and select recipients for a Notification Class transition.
resolve_transition_priority_ack
Resolve the per-transition Priority and Ack_Required for an event notification from the referenced NotificationClass.