• 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

    How to get current subscription status

    BACnet4J general discussion
    2
    3
    1.5k
    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.
    • M
      manojnair.s
      last edited by

      Hello All,

      I'm collecting data from devices using subscription with below parameters in the request.

      SubscribeCOVRequest covRequest = new SubscribeCOVRequest(
      		new UnsignedInteger(1), /* Process identifier; same for all subscription requests */
      		oid, /* Object identifier for subscription */
      		new Boolean( false ), /* Subscription request with unconfirmed notification; done to reduce overhead on my devices */
      		new UnsignedInteger( 3600 ) /* TTL in seconds */
      	);
      

      As the TTL is set for an hour, after every one hour I re-subscribe them again.

      Since I'm requesting unconfirmed notification, time-to-time I'm not getting any subscription for some of the objects at all.

      Is there a way by which I can get the current subscription status of an object identifier in the device?

      Appreciate any response on this.

      Thanks
      Manoj

      1 Reply Last reply Reply Quote 0
      • phildunlapP
        phildunlap
        last edited by

        Hi Manoj,

        I suspect you're looking for the LocalDevice's getCovContexts method, and maybe the CovReportingMixin's findCovSubscription method.

        1 Reply Last reply Reply Quote 0
        • M
          manojnair.s
          last edited by

          Hello Phildunlap,

          Thank you very much for your quick response. Much appreciated !!

          I got your point, will check on those two APIs over this weekend and let you know whether I'm able to find a solution.

          Thank you very much.
          Manoj

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