예제 #1
0
        public void OnNotificationEvent(UnconfirmedEventNotification notification)
        {
            NotificationEventHandler handler = NotificationEvent;

            if (handler != null)
            {
                handler(notification);
            }
        }
예제 #2
0
        public void ReceivedEventNotification(BacNetRawMessage msg)
        {
            UnconfirmedEventNotification apdu;

            try
            {
                apdu = new UnconfirmedEventNotification(msg.Apdu);
            }
            catch { return; }
            BacNetDevice.Instance.OnNotificationEvent(apdu);
        }