<?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[Discover devices in the same network]]></title><description><![CDATA[<p dir="auto">Hello!<br />
I am developing an application with BACnet4J library. First of all, I am able capable of reading properties from a device. However, I would like to discover devices connected in the same network. That is to say, I do not know IP/port from other BACnet devices, but I really know that they exist. I am playing with ObjectType.device and PropertyIdentifier. I have included in my code the following lines:</p>
<pre><code>
lDevice.sendBroadcast(1476, null, new WhoIsRequest());
Thread.sleep(5000);
for (RemoteDevice d : lDevice.getRemoteDevices()) {
	lDevice.getExtendedDeviceInformation(d);
	List&lt;ObjectIdentifier&gt; oids = ((SequenceOf&lt;ObjectIdentifier&gt;) 
                 lDevice.sendReadPropertyAllowNull(d, d.getObjectIdentifier(),PropertyIdentifier.objectList)).getValues();
    PropertyReferences refs = new PropertyReferences();
	for (ObjectIdentifier oid : oids)
	     addPropertyReferences(refs, oid);
             PropertyValues pvs = lDevice.readProperties(d, refs);
	     // pvs.
	     System.out.println(pvs);
	     System.out.println(d);
        }
}
</code></pre>
<p dir="auto">Someone could help me, please.<br />
Thank you very much!<br />
Kind regards!</p>
]]></description><link>https://forum.mango-os.com/topic/972/discover-devices-in-the-same-network</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 13:38:45 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/972.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 06 Mar 2012 13:56:46 GMT</pubDate><ttl>60</ttl></channel></rss>