how to create periodic timer event

3 posts / 0 new
Last post
Last seen: 3 weeks 5 days ago
Joined: 05/20/2020
Posts: 7
how to create periodic timer event

new to rti dds, would like to know how to create a periodic timer event in dds which will invoke a callback function?

irwin's picture
Last seen: 3 years 9 months ago
Joined: 08/14/2010
Posts: 42


 Good question. However, we have no API that that is device independant that will provide that. You will have to utilize your platform specific OS calls to provide that. That being said, there is a way. I would create a topic with a deadline

and publish it to myself. However, I would not send any samples. You will then get on_deadline_missed callbacks. Kinnd of hokey, biut it should work.



Kpsingh05's picture
Last seen: 2 years 3 weeks ago
Joined: 03/05/2020
Posts: 12

Hi Irwin

Just to clarify in the thread,

if Data Writer has not published any instance. Deadline will not be triggered.

It is triggered only when a particular instance is not re written  in a time duration.



KP Singh