use of org.eclipse.milo.opcua.sdk.server.api.DataItem in project plc4x by apache.
the class Plc4xNamespace method onDataItemsCreated.
@Override
public void onDataItemsCreated(List<DataItem> dataItems) {
for (DataItem item : dataItems) {
plc4xServer.addField(item);
if (plc4xServer.getDriverManager() == null) {
plc4xServer.removeField(item);
plc4xServer.setDriverManager(new PooledPlcDriverManager());
}
}
subscriptionModel.onDataItemsCreated(dataItems);
}
Aggregations