From 7366f3bda7af2312719d54a25cf29a8468cfbafb Mon Sep 17 00:00:00 2001 From: Oussama Teffahi Date: Wed, 17 Apr 2024 18:04:20 +0200 Subject: [PATCH] Add config file usage to z_pub_thr --- examples/universal/z_pub_thr.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/universal/z_pub_thr.cxx b/examples/universal/z_pub_thr.cxx index d9f19468..e1b27a26 100644 --- a/examples/universal/z_pub_thr.cxx +++ b/examples/universal/z_pub_thr.cxx @@ -37,6 +37,11 @@ int _main(int argc, char **argv) { std::vector 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 + "\"]";