I have an Ignition 8.0.2 gateway and a connected Ignition 7.9.4 gateway. I am trying to read tag properties from the connected v7 gateway and getting a NullReferenceException when reading the HistoryProvider, historicalDeadbandStyle and a UDT property.
This is my code sample:
private static final BasicProperty<InterpolationMode> DeadbandStyleProperty =
new BasicProperty<>("historicalDeadbandStyle", InterpolationMode.class,
InterpolationMode.Auto);
private static final BasicProperty<Object> UdtProperty =
new BasicProperty<>("My User Defined Type", Object.class);
List<String> properties = List.of(
WellKnownTagProps.HistoryProvider.getName(),
DeadbandStyleProperty.getName(),
UdtProperty.getName()
);
String tagPath = "";
List<TagPath> propertyPaths = properties.stream()
.map(p -> TagPathParser.parseSafe(String.format("%s.%s", tagPath, p)))
.collect(Collectors.toList());
List<QualifiedValue> values = tagManager.readAsync(propertyPaths).get();
Any idea what I am doing wrong?