JoelBender / bacpypes

BACpypes provides a BACnet application layer and network layer written in Python for daemons, scripting, and graphical interfaces.
MIT License
297 stars 129 forks source link

Support for Alarms and Event Notifications #476

Open eoldak opened 1 year ago

eoldak commented 1 year ago

Hey Joel! Amazing work and support, thank you so much.

Question - is there support for receiving Alarms via Event Notifications?

Thank you! EJ

JoelBender commented 1 year ago

Sure, extend your Application subclass with a do_ConfirmedEventNotificationRequest function. You'll get an APDU with all of the EventNotificationParameters the client provided, respond with a simple acknowledgement. You'll also probably want a do_UnconfirmedEventNotificationRequest function with similar processing, but in that case there is no acknowledgement. There is a sample application with some interesting bits of code that might help.