<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[PropertyArrayIndex=null with SlaveDeviceTest]]></title><description><![CDATA[<p dir="auto">I have downloaded and run bacnet4J 1.2, then I have tried to run the SlaveDeviceTest together with the DiscoveryTest. Of course, I have adjusted the IP address.<br />
This is my output:</p>
<pre><code>
IAm receivedRemoteDevice(instanceNumber=1968, address=Address(networkNumber=0, macAddress=[a,1,a,47,8,14]), network=null)
ObjectPropertyReference(objectIdentifier=Analog Input 0, propertyIdentifier=Object name, propertyArrayIndex=null)
ObjectPropertyReference(objectIdentifier=Analog Input 0, propertyIdentifier=Units, propertyArrayIndex=null)
ObjectPropertyReference(objectIdentifier=Analog Input 0, propertyIdentifier=Present value, propertyArrayIndex=null)
RemoteDevice(instanceNumber=1968, address=Address(networkNumber=0, macAddress=[a,1,a,47,8,14]), network=null)

</code></pre>
<p dir="auto">This is my code on SlaveDeviceTest</p>
<pre><code>
        BACnetObject ai0x = new BACnetObject(localDevice,
                localDevice.getNextInstanceObjectIdentifier(ObjectType.analogInput));
        ai0x.setProperty(PropertyIdentifier.objectName, new CharacterString("AAAAAaaaaAAAA"));
        ai0x.setProperty(PropertyIdentifier.units, EngineeringUnits.centimeters);
        localDevice.addObject(ai0x);

</code></pre>
<p dir="auto">My question is: why is the propertyArray null? Shouldn't it contain my values instead?</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://forum.mango-os.com/topic/1181/propertyarrayindex-null-with-slavedevicetest</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 13:33:14 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/1181.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 13 Nov 2012 20:44:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PropertyArrayIndex=null with SlaveDeviceTest on Wed, 14 Nov 2012 20:47:30 GMT]]></title><description><![CDATA[<p dir="auto">It works! Many thanks!  :mrgreen:  :mrgreen:  :mrgreen:</p>
]]></description><link>https://forum.mango-os.com/post/7157</link><guid isPermaLink="true">https://forum.mango-os.com/post/7157</guid><dc:creator><![CDATA[MicheleMarcon]]></dc:creator><pubDate>Wed, 14 Nov 2012 20:47:30 GMT</pubDate></item><item><title><![CDATA[Reply to PropertyArrayIndex=null with SlaveDeviceTest on Wed, 14 Nov 2012 19:18:54 GMT]]></title><description><![CDATA[<pre><code>    PropertyValues pvs = localDevice.readProperties(d, refs);  
    Iterator&amp;lt;ObjectPropertyReference&amp;gt; i=pvs.iterator();  
    while (i.hasNext()){  
        PropertyValue pv = pvs.get(i.next());
        System.out.println(pv);  
    }  
</code></pre>
]]></description><link>https://forum.mango-os.com/post/7156</link><guid isPermaLink="true">https://forum.mango-os.com/post/7156</guid><dc:creator><![CDATA[mlohbihler]]></dc:creator><pubDate>Wed, 14 Nov 2012 19:18:54 GMT</pubDate></item><item><title><![CDATA[Reply to PropertyArrayIndex=null with SlaveDeviceTest on Wed, 14 Nov 2012 14:20:59 GMT]]></title><description><![CDATA[<p dir="auto">To clarify: I don't know how to get the property values. The code posted prints the reference instead of the actual values...</p>
<p dir="auto">Please let me know how to rectify this, thanks.</p>
]]></description><link>https://forum.mango-os.com/post/7155</link><guid isPermaLink="true">https://forum.mango-os.com/post/7155</guid><dc:creator><![CDATA[MicheleMarcon]]></dc:creator><pubDate>Wed, 14 Nov 2012 14:20:59 GMT</pubDate></item><item><title><![CDATA[Reply to PropertyArrayIndex=null with SlaveDeviceTest on Tue, 13 Nov 2012 21:24:19 GMT]]></title><description><![CDATA[<p dir="auto">On the SlaveDeviceTest, I have set</p>
<pre><code>
ai0x.setProperty(PropertyIdentifier.objectName, new CharacterString("AAAAAaaaaAAAA"));  
ai0x.setProperty(PropertyIdentifier.units, EngineeringUnits.centimeters); 
</code></pre>
<p dir="auto">How do I get them on the DiscoveryTest?</p>
]]></description><link>https://forum.mango-os.com/post/7153</link><guid isPermaLink="true">https://forum.mango-os.com/post/7153</guid><dc:creator><![CDATA[MicheleMarcon]]></dc:creator><pubDate>Tue, 13 Nov 2012 21:24:19 GMT</pubDate></item><item><title><![CDATA[Reply to PropertyArrayIndex=null with SlaveDeviceTest on Tue, 13 Nov 2012 21:16:59 GMT]]></title><description><![CDATA[<p dir="auto">That's pretty much it, yes.</p>
]]></description><link>https://forum.mango-os.com/post/7151</link><guid isPermaLink="true">https://forum.mango-os.com/post/7151</guid><dc:creator><![CDATA[mlohbihler]]></dc:creator><pubDate>Tue, 13 Nov 2012 21:16:59 GMT</pubDate></item><item><title><![CDATA[Reply to PropertyArrayIndex=null with SlaveDeviceTest on Tue, 13 Nov 2012 21:08:11 GMT]]></title><description><![CDATA[<p dir="auto">Thanks! My next question is: how do I get the object property/propertyArray/whathever contains my values?</p>
<p dir="auto">This is the code from DiscoveryTest:</p>
<pre><code>
        for (RemoteDevice d : localDevice.getRemoteDevices()) {
            localDevice.getExtendedDeviceInformation(d);
            List&lt;ObjectIdentifier&gt; oids = ((SequenceOf&lt;ObjectIdentifier&gt;) localDevice.sendReadPropertyAllowNull(d, d
                    .getObjectIdentifier(), PropertyIdentifier.objectList)).getValues();

            PropertyReferences refs = new PropertyReferences();
            for (ObjectIdentifier oid : oids)
                addPropertyReferences(refs, oid);

            PropertyValues pvs = localDevice.readProperties(d, refs);
            // pvs.
            Iterator&lt;ObjectPropertyReference&gt; i=pvs.iterator();
            while (i.hasNext()){
            System.out.println(i.next());
            }
            System.out.println(d);
        }


</code></pre>
]]></description><link>https://forum.mango-os.com/post/7149</link><guid isPermaLink="true">https://forum.mango-os.com/post/7149</guid><dc:creator><![CDATA[MicheleMarcon]]></dc:creator><pubDate>Tue, 13 Nov 2012 21:08:11 GMT</pubDate></item><item><title><![CDATA[Reply to PropertyArrayIndex=null with SlaveDeviceTest on Tue, 13 Nov 2012 21:01:46 GMT]]></title><description><![CDATA[<p dir="auto">No. An ObjectPropertyReference is a reference to an object property, as the name would suggest. It is not the property value. It is the propertyArrayIndex that is null. A reference does not have a propertyArray.</p>
]]></description><link>https://forum.mango-os.com/post/7147</link><guid isPermaLink="true">https://forum.mango-os.com/post/7147</guid><dc:creator><![CDATA[mlohbihler]]></dc:creator><pubDate>Tue, 13 Nov 2012 21:01:46 GMT</pubDate></item></channel></rss>