Ignition 8.1,
In a module driver implementing the Device interface**,** I’m looking for the method for managing system.opc.read responses.
With AbstractTagDriver, we just have to override this method:
@Override
// readItems(java.util.List<? extends ReadItem> items)
// Asynchronous read call for a list of items.
public void readItems(List<? extends ReadItem> items){
system.opc.readValue(opcServer, itemPath)
return the value from the opcua server, but we probably want to process a synchronous request to the device ?
I suppose we need to add a filter to the node, but it will concern all read operation ?
// an AttributeFilter is used so that when this node is asked for its value, it will call out to the
// simulator
node.getFilterChain().addLast(AttributeFilters.getValue(
getAttributeContext ->
simulator.getTrackedValue(formattedName))
);