Skip to content

Commit

Permalink
Slight change in config file
Browse files Browse the repository at this point in the history
  • Loading branch information
kzangeli committed Oct 11, 2024
1 parent 8042a95 commit e9c0398
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 26 deletions.
1 change: 0 additions & 1 deletion docker/build-ubi/04.install-fastdds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ yum -y --nogpgcheck install https://dl.fedoraproject.org/pub/fedora/linux/releas
# Fast-DDS
mkdir /opt/Fast-DDS


#
# foonathan_memory_vendor
#
Expand Down
52 changes: 29 additions & 23 deletions scripts/configFile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,40 @@
# iot_support at tid dot es

echo '{'
echo ' "ddsmodule": {'
echo ' "domain": 0,'
echo ' "allowlist": {'
echo ' "name": "*"'
echo ' },'
echo ' "blocklist": {'
echo ' "name": "add_blocked_topics_list_here"'
echo ' },'
echo ' "topics": {'
echo ' "name": "*",'
echo ' "qos": {'
echo ' "durability": "TRANSIENT_LOCAL",'
echo ' "history-depth": 5'
echo ' }'
echo ' },'
echo ' "enabler": {'
echo ' },'
echo ' "specs": {'
echo ' "threads": 12,'
echo ' "logging": {'
echo ' "stdout": false,'
echo ' "verbosity": "info"'
echo ' "dds": {'
echo ' "ddsmodule": {'
echo ' "dds": {'
echo ' "domain": 0,'
echo ' "allowlist": ['
echo ' {'
echo ' "name": "*"'
echo ' }'
echo ' ],'
echo ' "blocklist": ['
echo ' {'
echo ' "name": "add_blocked_topics_list_here"'
echo ' }'
echo ' ]'
echo ' },'
echo ' "topics": {'
echo ' "name": "*",'
echo ' "qos": {'
echo ' "durability": "TRANSIENT_LOCAL",'
echo ' "history-depth": 10'
echo ' }'
echo ' },'
echo ' "ddsenabler": null,'
echo ' "specs": {'
echo ' "threads": 12,'
echo ' "logging": {'
echo ' "stdout": false,'
echo ' "verbosity": "info"'
echo ' }'
echo ' }'
echo ' },'
echo ' "ngsild": {'
echo ' "topics": {'


while [ $# != 0 ]
do
items=$1
Expand Down
2 changes: 1 addition & 1 deletion src/lib/orionld/dds/ddsConfigTopicToAttribute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ char* ddsConfigTopicToAttribute(const char* topic, char** entityIdPP, char** ent
if (ddsConfigTree == NULL)
return NULL; // No error - it's OK to not have a DDS Config File

const char* path[4] = { "ddsmodule", "ngsild", "topics", NULL };
const char* path[4] = { "dds", "ngsild", "topics", NULL };
static KjNode* topicsP = kjNavigate(ddsConfigTree, path, NULL, NULL);
KjNode* topicP = kjLookup(topicsP, topic);

Expand Down
2 changes: 1 addition & 1 deletion src/lib/orionld/dds/ddsInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ int ddsInit(Kjson* kjP, DdsOperationMode _ddsOpMode)
extern KjNode* ddsConfigTree;
kjTreeLog2(ddsConfigTree, "DDS Config", StDdsConfig);
KT_T(StDdsConfig, "Topics:");
const char* path[4] = { "ddsmodule", "ngsild", "topics", NULL };
const char* path[4] = { "dds", "ngsild", "topics", NULL };
KjNode* topics = kjNavigate(ddsConfigTree, path , NULL, NULL);

if (topics != NULL)
Expand Down

0 comments on commit e9c0398

Please sign in to comment.