• 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

    Create a BACnet object with fixed instance number

    BACnet4J general discussion
    2
    7
    3.6k
    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.
    • P
      Poldi
      last edited by

      Hello

      How can I create a BACnet object with fixed instance number on the local device?

      Thanks for any answers

      1 Reply Last reply Reply Quote 0
      • M
        mlohbihler
        last edited by

        BACnetObject o = new BACnetObject(LocalDevice, ObjectIdentifier);
        localDevice.addObject(o);
        

        Best regards,
        Matthew

        1 Reply Last reply Reply Quote 0
        • P
          Poldi
          last edited by

          Hello mlohbihler

          Thanks for your Answers I had tried it and it don`t works.
          How have I to write this when I want a Binary Value with the Objectinstance number 1 for example?

          Regards

          Poldi

          1 Reply Last reply Reply Quote 0
          • M
            mlohbihler
            last edited by

            That code was meant to be instructive, not compilable. The ObjectIndentifier parameter has both data type and instance number. You should find what you need there.

            Best regards,
            Matthew

            1 Reply Last reply Reply Quote 0
            • P
              Poldi
              last edited by

              I had found something to do what I want here is an example, how I can add a Binary Value with the Instancenumber 1

              
                      //Binary Value create with fixed instance number
                      ObjectIdentifier OIbv1 = new ObjectIdentifier(ObjectType.binaryValue, 1);
                      BACnetObject bv1 = new BACnetObject (localDevice, OIbv1);
              
              
              1 Reply Last reply Reply Quote 0
              • M
                mlohbihler
                last edited by

                Add this line:

                localDevice.addObject(o);  
                

                Best regards,
                Matthew

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