how to create periodic timer event

3 posts / 0 new
Last post
Offline
Last seen: 3 weeks 18 hours 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
Offline
Last seen: 4 years 3 months ago
Joined: 08/14/2010
Posts: 42

Hi,

 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.

 

                                                   Irwin

Kpsingh05's picture
Offline
Last seen: 2 years 7 months 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.

 

Regards

KP Singh