Thanks you for your reply. We have a few vehicles to connect to a middleware, both can publish in different topics. .
We have established QoS parameters but we dont have the solution. We need persistency for late joiners but when a vehicle or middleware restarts, it receives again all messages, We assume this happens because they have different GUIDs.
These are the values that we have defined:
topicQos.value.reliability.kind = DDS.ReliabilityQosPolicyKind.RELIABLE_RELIABILITY_QOS;
topicQos.value.durability.kind = DDS.DurabilityQosPolicyKind.TRANSIENT_DURABILITY_QOS;
topicQos.value.history.kind = DDS.HistoryQosPolicyKind.KEEP_LAST_HISTORY_QOS;
topicQos.value.history.depth = 5;
topicQos.value.resource_limits.max_samples_per_instance = 5;
topicQos.value.destination_order.kind = DDS.DestinationOrderQosPolicyKind.BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS;
So, our idea is that we can set the GUID, GUID will always be the same and Middleware or vehicles will not receive messages again.
Thank you for your help.