Skip to content

Commit

Permalink
qos for history
Browse files Browse the repository at this point in the history
  • Loading branch information
kzangeli committed Oct 4, 2024
1 parent 3b8a19b commit c4efa2e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions config/DDS_ENABLER_CONFIGURATION.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ dds:
blocklist:
- name: "add_blocked_topics_list_here"

topics:
name: "*"
qos:
durability: TRANSIENT_LOCAL
history-depth: 5

# DDS Enabler configuration
ddsenabler:

Expand Down
4 changes: 2 additions & 2 deletions test/functionalTest/ftClient/NgsildPublisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ bool NgsildPublisher::init(const char* topicName)

wqos.reliability().kind = eprosima::fastdds::dds::RELIABLE_RELIABILITY_QOS;
wqos.durability().kind = eprosima::fastdds::dds::TRANSIENT_LOCAL_DURABILITY_QOS;
// wqos.history().kind = eprosima::fastdds::dds::KEEP_LAST_HISTORY_QOS;
// wqos.history().depth = 5;
wqos.history().kind = eprosima::fastdds::dds::KEEP_LAST_HISTORY_QOS;
wqos.history().depth = 5;
writer_ = publisher_->create_datawriter(topic_, wqos, &listener_);

if (writer_ == nullptr)
Expand Down

0 comments on commit c4efa2e

Please sign in to comment.