Skip to content

Commit

Permalink
Add config file usage to z_pub_thr
Browse files Browse the repository at this point in the history
  • Loading branch information
oteffahi committed Apr 17, 2024
1 parent 8d691c5 commit 0b2ddda
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/universal/z_pub_thr.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ int _main(int argc, char **argv) {
std::vector<char> payload(len, 1);

Config config;
#ifdef ZENOHCXX_ZENOHC
if (configfile) {
config = expect(config_from_file(configfile));
}
#endif
if (locator) {
#ifdef ZENOHCXX_ZENOHC
auto locator_json_str_list = std::string("[\"") + locator + "\"]";
Expand Down

0 comments on commit 0b2ddda

Please sign in to comment.