you still need to ask for complete objectList
then only show analogOutput
private static void getObjectList(LocalDevice localDevice, String ip, int port, int deviceId) throws Exception
{
InetSocketAddress addr = new InetSocketAddress(InetAddress.getByName(ip), port);
ReadPropertyRequest read = new ReadPropertyRequest(new ObjectIdentifier(ObjectType.device, deviceId), PropertyIdentifier.objectList);
ReadPropertyAck ack = (ReadPropertyAck) localDevice.send(addr, null, 1476, Segmentation.segmentedBoth, read);
System.out.println("IP: " + ip);
SequenceOf<ObjectIdentifier> oids = (SequenceOf<ObjectIdentifier>) ack.getValue();
for (ObjectIdentifier oid : oids)
{
if(oid.getObjectType().intValue() == ObjectType.analogOutput.intValue())
{
System.out.println(" " + oid);
}
}
}