@mlohbihler said:
I don't think so, but it's not hard. The only trick is that you need to know the instance id of the device.
RemoteDevice rd = new RemoteDevice(...);
localDevice.addRemoteDevice(rd); // This may not actually be necessary
localDevice.send(rd, myRequest);
Where "myRequest" is, say, a read property with pid of objectList. If your setting are correct, you should get the object list of the remote device.
I found the id of my device, it's 101, but I have some doubts about it :
public static void main(String[] args) throws Exception {
// How to initialize the LocalDevice ?
LocalDevice ld = new LocalDevice (???);
// let's say my ip is : 1.2.3.4, is this correct ?
RemoteDevice rd = new RemoteDevice(101, new Address(new byte[] { (byte) 1, (byte) 2, 3, (byte) 4 }, 47808), null);
ld.addRemoteDevice(rd);
// now I have the remote device, in the localDevice, now I should be able to use the method 'getObjectList()' ?
// how to use this 'myRequest' (I don't understand what you said about it ) ?
localDevice.send(rd, myRequest);
...
}