Updated article on Configuring DDS authored by Marcus Schilling's avatar Marcus Schilling
...@@ -1188,7 +1188,8 @@ Code (C++) ...@@ -1188,7 +1188,8 @@ Code (C++)
```cpp ```cpp
// Create DDS-MAL with custom mal properties // Create DDS-MAL with custom mal properties
// With Fast DDS, the profile.library prop *must* be same as the env var! // With Fast DDS, profile.library prop and env var *must* have same value!
// Here the env var wins, but you can also do the inverse (using setenv).
char* env_var = std::getenv("FASTRTPS_DEFAULT_PROFILES_FILE"); char* env_var = std::getenv("FASTRTPS_DEFAULT_PROFILES_FILE");
const ::elt::mal::Mal::Properties malprops { {"dds.qos.profile.library", env_var}, const ::elt::mal::Mal::Properties malprops { {"dds.qos.profile.library", env_var},
{"dds.qos.profile.name", "MyApp_Default"} }; {"dds.qos.profile.name", "MyApp_Default"} };
... ...
......