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.