<?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[Device object]]></title><description><![CDATA[<p dir="auto">the bacnet standard expects a device object.<br />
in localdevice.java modify the following lines:</p>
<pre><code>
    public LocalDevice(int deviceId, String broadcastAddress, String localBindAddress) {
        messageControl = new IpMessageControl();
        messageControl.setPort(DEFAULT_PORT);
        if (localBindAddress != null)
            messageControl.setLocalBindAddress(localBindAddress);
        messageControl.setBroadcastAddress(broadcastAddress);
        messageControl.setRequestHandler(this);

        try {
        	ObjectIdentifier devObj = new ObjectIdentifier(ObjectType.device, deviceId);
        	SequenceOf&lt;ObjectIdentifier&gt; objList = new SequenceOf&lt;ObjectIdentifier&gt;();
        	objList.add(devObj);
            configuration = new BACnetObject(this, devObj);
            configuration.setProperty(PropertyIdentifier.maxApduLengthAccepted, new UnsignedInteger(1476));
            configuration.setProperty(PropertyIdentifier.vendorIdentifier, new Unsigned16(VENDOR_ID));
            configuration.setProperty(PropertyIdentifier.vendorName, new CharacterString(
                    "Serotonin Software Technologies, Inc."));
            configuration.setProperty(PropertyIdentifier.segmentationSupported, Segmentation.segmentedBoth);
            configuration.setProperty(PropertyIdentifier.objectList, objList);

...
</code></pre>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/matt" aria-label="Profile: matt">@<bdi>matt</bdi></a>:<br />
can you add this to the constructur?<br />
that's needed here and i think it's also of interest for others.</p>
<p dir="auto">thanks<br />
robert</p>
]]></description><link>https://forum.mango-os.com/topic/555/device-object</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 19:49:31 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/555.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 Oct 2010 13:57:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Device object on Fri, 01 Oct 2010 14:39:08 GMT]]></title><description><![CDATA[<p dir="auto">Hi Robert,</p>
<p dir="auto">Yes, this is fine. I've added it to the codebase. Thanks for pointing it out.</p>
]]></description><link>https://forum.mango-os.com/post/4517</link><guid isPermaLink="true">https://forum.mango-os.com/post/4517</guid><dc:creator><![CDATA[mlohbihler]]></dc:creator><pubDate>Fri, 01 Oct 2010 14:39:08 GMT</pubDate></item></channel></rss>