Search in sources :

Example 1 with DataItem

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);
}
Also used : DataItem(org.eclipse.milo.opcua.sdk.server.api.DataItem) PooledPlcDriverManager(org.apache.plc4x.java.utils.connectionpool.PooledPlcDriverManager)

Aggregations

PooledPlcDriverManager (org.apache.plc4x.java.utils.connectionpool.PooledPlcDriverManager)1 DataItem (org.eclipse.milo.opcua.sdk.server.api.DataItem)1