• 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

    Read a encodable value in a array

    BACnet4J general discussion
    2
    15
    6.8k
    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
      mlohbihler
      last edited by

      Like this:

      
              ReadPropertyRequest req = new ReadPropertyRequest(new ObjectIdentifier(ObjectType.analogOutput, 1234),
                      PropertyIdentifier.priorityArray);
              ReadPropertyAck ack = localDevice.send(remoteDevice, req);
              PriorityArray priorityArray = (PriorityArray) ack.getValue();
              int priority = priorityArray.get(16).getIntegerValue().intValue();
      
      

      Best regards,
      Matthew

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

        Note that it is the remote device that is imposing this, not BACnet4J (unless BACnet4J is the implementation in the remote device). The error message about "Property is not an array/list" is being returned by the equipment, which is why you need to do it this way.

        Best regards,
        Matthew

        1 Reply Last reply Reply Quote 0
        • J
          Jbacnet
          last edited by

          Please see the attached file that show the equipement answer.

          The error is created by the stack, because of the PriorityArray is not a sequence

           add(ObjectType.analogOutput, PropertyIdentifier.priorityArray, PriorityArray.class, false, true,  new PriorityArray());
          
          

          Attachment: download link

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

            Ah, i see. Can you send me the full byte stream and i'll take a look.

            Best regards,
            Matthew

            1 Reply Last reply Reply Quote 0
            • J
              Jbacnet
              last edited by

              Yes Monday (or tomorrow) i can send you the full byte stream (I have not the station here sorry)

              Thanks for help and good week-end !

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

                No problem. If you can please include the request byte stream as well, that may be useful.

                Best regards,
                Matthew

                1 Reply Last reply Reply Quote 0
                • J
                  Jbacnet
                  last edited by

                  This is my wireshark capture

                  see #21 in this capture.

                  Thanks

                  Attachment: download link

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

                    K. I think it should be better now. This was an issue only with PriorityArray i believe. Changes have been checked into CVS. Please let me know if it helps.

                    Best regards,
                    Matthew

                    1 Reply Last reply Reply Quote 0
                    • J
                      Jbacnet
                      last edited by

                      Thanks it's help !

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