enableEventReporting method
void
enableEventReporting({
- required int notificationClass,
- BacnetNotifyType notifyType = BacnetNotifyType.alarm,
- BacnetEventTransitionBits eventEnable = _allTransitions,
Enables event reporting: transitions reported with reportEvent go
to the recipients of Notification Class notificationClass (add it
with FakeBacnetDevice.addNotificationClass).
Implementation
void enableEventReporting({
required int notificationClass,
BacnetNotifyType notifyType = BacnetNotifyType.alarm,
BacnetEventTransitionBits eventEnable = _allTransitions,
}) {
properties.addAll({
BacnetPropertyId.notificationClass: BacnetUnsigned(notificationClass),
BacnetPropertyId.notifyType: BacnetEnumerated(notifyType),
BacnetPropertyId.eventEnable: eventEnable.toValue(),
BacnetPropertyId.eventState: BacnetEnumerated(_eventState),
BacnetPropertyId.ackedTransitions: _acked.toValue(),
BacnetPropertyId.eventTimeStamps: BacnetList([
for (final stamp in _stamps) stamp.toValue(),
]),
});
}