<?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[Remote devices of a local device]]></title><description><![CDATA[<p dir="auto">Hi Matthew!,</p>
<p dir="auto">Playing with services, I have discovered a potential none expected  behaviour, with the list of remote devices of a local device.</p>
<p dir="auto">First, this list can contain remotes devices doubles.<br />
For example, try this :</p>
<pre><code>
localDevice.sendBroadcast(0xBAC0, new WhoIsRequest(null, null));                        
localDevice.sendBroadcast(0xBAC0, new WhoIsRequest(null, null));
for (RemoteDevice d : localDevice.getRemoteDevices()) {
      System.out.println("Device found : " + d);
}

</code></pre>
<p dir="auto">Moreover, I do not think it is normal to always have the full remote devices list available, after a call of WhoHasRequest method :</p>
<pre><code>
localDevice.sendBroadcast(0xBAC0, new WhoIsRequest(null, null));
localDevice.sendBroadcast(0xBAC0,new WhoHasRequest(null, new ObjectIdentifier(ObjectType.binaryInput, 4097)));

for (RemoteDevice d : localDevice.getRemoteDevices()) {
      System.out.println("Device found : " + d);
}

</code></pre>
<p dir="auto">In conclusion, we always add remote devices in the list.<br />
Therefore, can we imagine to add code for cleaning the remote devices list, before each call of WhoIsRequest, WhoHasRequest, etc. ?</p>
<p dir="auto">Thank you in advance!</p>
<p dir="auto">Jérémie</p>
]]></description><link>https://forum.mango-os.com/topic/616/remote-devices-of-a-local-device</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 02:44:10 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/616.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 03 Nov 2010 14:21:39 GMT</pubDate><ttl>60</ttl></channel></rss>