How 'on_data_available' can be checked when dds is running on system?

1 post / 0 new
Offline
Last seen: 3 years 6 months ago
Joined: 11/25/2015
Posts: 14
How 'on_data_available' can be checked when dds is running on system?

Hi

I want to check counts indicating how many times 'on_data_available' listener is called when datareader is receiving samples.

But, I don't know exactly how I should make codes to confirm it.

I've already made source code

ex) data_reader[i] = subscriber->create_datareader(curr_topic, data_reader_qos, listener[i], DDS_DATA_AVAILABLE_STATUS);

And implemented StatusMask : DDS_DATA_AVAILABLE_STATUS.

 

Thanks for your response.