• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Notification when client subscribed an object

    BACnet4J general discussion
    2
    3
    2.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • carnecroC
      carnecro
      last edited by

      I am writing a gateway between a proprietary protocol and BACnet, where a large number of data points should be exposed as BACnet points. I need to know when any BACnet client subscribed an object for data delivery to start polling for values on the backend. Any idea where to hook?

      1 Reply Last reply Reply Quote 0
      • terrypackerT
        terrypacker
        last edited by

        I'm not overly familiar with the BACnet protocol but I have worked with this code some. Perhaps the class:

        com.serotonin.bacnet4j.event.DeviceEventListener
        
        1 Reply Last reply Reply Quote 0
        • carnecroC
          carnecro
          last edited by

          The method

          covNotificationReceived(...)
          

          in

          com.serotonin.bacnet4j.event.DeviceEventLiistener
          

          is fired on the client side when a BACnet client receives a value change from a BACnet server. What I need is the opposite - I need an event on the server side when a client starts to poll for a BACnetObject property (in my case the PresentValue). The proper place for a hook could be

          BACnetObject.addCovSubscription()
          BACnetObject.removeCovSubscription()
          

          or

          CovReportingMixin.addCovSubscription()
          CovReportingMixin.removeCovSubscription()
          

          Both are not easy to implement via subclassing (Bacnet4J library does not allow me to add my own MixIn, for example) so I ended by changing the original source code.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post