Datareaderlistener

2 posts / 0 new
Last post
Offline
Last seen: 1 year 15 hours ago
Joined: 01/03/2023
Posts: 10
HelloWorldSubscriber_on_subscription_matched Not Work

Hi,

I'm working on the DDS Micro.

I add a function to get DDS_ParticipantBuiltinTopicData in the HelloWorld_dpde example. So the basic steps are:

 1. Print new found participant info (e.g. DCPS key) by install the listenser :

builtin_participant_listener.on_data_available = BuiltinParticipantListener_on_data_available;

retcode = DDS_DataReader_set_listener( builtin_participant_datareader, &builtin_participant_listener, DDS_DATA_AVAILABLE_STATUS);

2. Start normal Pub/Sub workflow:

on publisher:

Organization:
2 posts / 0 new
Last post
Offline
Last seen: 1 year 11 months ago
Joined: 02/25/2019
Posts: 13
Multiple datareaderlistener in different classes

I have a topic and there is a reader for this topic, reader is shared with two different classes , can i attach two datareaderlistener for this shared reader in respective classes and implement on_data_available in respective classes, so that logic and implementation according to that particular class is get executed. Code is developed in java. Can anyone suggest what should i do , when i need to read same topic data in two different class on_data_available. There is  a need for creating two different classes they are independently executed.

Organization:
Subscribe to RSS - Datareaderlistener