PubSub - Subscribing for 2 datasets

27 views
Skip to first unread message
Message has been deleted

Charan Raj O

unread,
Jan 22, 2025, 7:36:31 AM1/22/25
to open...@googlegroups.com

Hi Team,

 

Problem statement: Using the example “tutorial_pubsub_subscribe.c”(Subscriber program) where I can able to subscribe for either of one dataset but not able to subscribe for both the datasets in single program.

 

This is regarding broker less pubsub subscriber implementation and I have used examples server_pubsub_publisher_iop.c  for publisher and tutorial_pubsub_subscribe.c  for subscriber from open62541 library.

 

I am using example “server_pubsub_publisher_iop.c“ to publish two datasets and trying to write a subscriber code where I can subscribe for 2 datasets.

 

I modified server_pubsub_publisher_iop.c example to publish 5 data’s in dataset 1 and publish 2 data’s in dataset 2. Attaching the code for your reference. I have modified tutorial_pubsub_subscribe.c subscriber code to subscribe for two datasets, and when run the subscriber program and connect this subscriber to “free OPCUA client” application, in application I am only able to see the dataset 1 parameters and dataset 2 parameters are not visible. I have attached the code for reference.

 

 

Can you please check and let me know what I am doing wrong.



This electronic mail (including any attachments) may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic mail or its contents (including any attachments) by persons other than the intended recipient(s) is strictly prohibited. If you have received this message in error, please notify us immediately by reply e-mail so that we may correct our internal records. Please then delete the original message (including any attachments) in its entirety. Thank you
server_pubsub_publisher_iop2.txt
tutorial_pubsub_subscribe2.txt
Reply all
Reply to author
Forward
0 new messages