I subscribed to two topics according to examples/listtopics/listtopics.c, but encountered two strange problems. The first topic settings/controlMode could not print char *, and the second topic rt/clearError was triggered just after it was created. Moreover, when the publisher published once per second, it was not triggered once every 1s, but seemed to be triggered dozens of times. I don't know why?
process_topic function:
I subscribed to two topics according to examples/listtopics/listtopics.c, but encountered two strange problems. The first topic
settings/controlMode
could not printchar *
, and the second topicrt/clearError
was triggered just after it was created. Moreover, when the publisher published once per second, it was not triggered once every 1s, but seemed to be triggered dozens of times. I don't know why? process_topic function:`
ListenOperation function: