Closed serges147 closed 6 months ago
Looks like canardRxHasSubscription() → bool
is enough - we only need to check for possible double subscription for the same kind & port pair.
I actually wanted to mention this earlier but forgot: since we'll have to find that specific subscription in the tree anyway, should we not keep canardRxGetSubscription
as it is more versatile? There are sensible use cases where one might want to find an existing subscription to modify it.
ok, I revert back to → canardRxGetSubscription
c++ libcyphal needs api to detect already existing subscription (without "touching" one if any). Here is proposal: