i’m trying to subcribe items from ignition opc ua server, my client is being developed with the prosys java sdk.
subscription is added to client and the items are added to subscription. but it seems that no notifications are sent from server to client and after few seconds the subcription disappears from server, so when i try to add another item i get this message “ServiceResult=Bad_SubscriptionIdInvalid (0x80280000) “The subscription id is not valid.””
the same code works with KEPserver and Software Toolbox Omniserver.
Here is my code:
miCliente.connect(); subscription.setPublishingEnabled(true); subscription.setPublishingInterval(1000); subscription.setLifetimeCount(60); subscription.setMaxKeepAliveCount(5); subscription.setPriority(0); miCliente.addSubscription(subscription); . . . MonitoredDataItem item=new MonitoredDataItem(new NodeId(ns,tag), Attributes.Value, MonitoringMode.Reporting); item.setSamplingInterval(500); subscription.addItem(item);
is Ignition different from other servers or is it a bug???