Hopefully this is a quick fix and I'm just missing something really obvious. I'm using some of the sample code in the test files and getting time outs while trying to get data. Code is below.
I have tried different values for the OID. When I try "0" it comes back immediately as null which is accurate. The spec sheet is saying AV1-AV145 and BV1-BV36 is valid.
ObjectIdentifier oidtest = new ObjectIdentifier(ObjectType.analogValue, 3); PropertyReferences refstest = new PropertyReferences(); refstest.add(oidtest, PropertyIdentifier.all); PropertyValues pvstest = localDevice.readProperties(d, refstest); for (ObjectPropertyReference opr : pvstest) System.out.println(pvstest.getNoErrorCheck(opr));
Second issue is on the object list.
I have tried the code below. It doesn't work on my device because it doens't support segmentation. Are there some other functions that I could replace here?
List<ObjectIdentifier> oids = ((SequenceOf<ObjectIdentifier>) localDevice.sendReadPropertyAllowNull(d, d.getObjectIdentifier(), PropertyIdentifier.objectList)).getValues();