BACSharp.BacNetResponse.ReceivedCovNotification C# (CSharp) Method

ReceivedCovNotification() public method

public ReceivedCovNotification ( BacNetRawMessage msg ) : void
msg BACSharp.Types.BacNetRawMessage
return void
        public void ReceivedCovNotification(BacNetRawMessage msg)
        {
            UnconfirmedCOVnotification apdu;
            try
            {
                apdu = new UnconfirmedCOVnotification(msg.Apdu);
            }
            catch { throw; }

            if (BacNetDevice.Instance.Waiter is int && Convert.ToInt32(BacNetDevice.Instance.Waiter) == apdu.InvokeId)
            {
                if (apdu.Object == null)
                    _logger.Warn("Received empty object");
                BacNetDevice.Instance.Waiter = apdu;
            }
        }