0
Beantwortet

OPCUA4Unity Adding Monitored Items to Subscription.

JacobKreck vor 2 Wochen in OPCUA4Unity aktualisiert vor 1 Woche 3

Hello, I'm currently working on a project that requires reading of thousands of node values. Currently your documentation implies we should subscribe to nodes using OPCInterface.Subscribe() however, this makes a new subscription for each value which quickly reaches a limit. Is there a procedure for adding new monitored items to a single subscription?
 

Antwort

Antwort
Beantwortet

Hi,

currently this is not supported but I checked the OPCUA documentation and technically this is possible. We will add this feature to the next release (in about 1 month). Until we implemented that, you will need to poll or reduce the number of subscriptions.

Best regards

Thomas

GUT, ICH BIN ZUFRIEDEN.

Thank you for the quick reply, glad to hear this will be implemented in the next release. Unfortunately this functionality is required for my project, so the speed of your reply is greatly appreciated. For now, I will see if I can poll using a separate thread. 

Zufriedenheit von JacobKreck vor 2 Wochen
Antwort
Beantwortet

Hi,

currently this is not supported but I checked the OPCUA documentation and technically this is possible. We will add this feature to the next release (in about 1 month). Until we implemented that, you will need to poll or reduce the number of subscriptions.

Best regards

Thomas

+1

Hi Jacob,

we implemented it in our Unity2019.4 LTS beta. Do you want to test it. Your project must be on 2019. Now one subscription can handle multiple values. What I remarked was that OPCUA server might be slower with to much subscriptions.

For sending you a beta I will need your Unity Invoice Number - and a good rating in the Asset Store if it works ;-)

Best regards

Thomas

Hi Thomas. 

That's excellent to hear! You have saved me a real nightmare. I would love to be involved, My Invoice number is IN010200767764. I'll need to upgrade the project, but I'll branch and do that now. 

I guarantee a good review :) 

Thanks again,

Jacob.