Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change zenoh router configuration at run time #45

Open
uupks opened this issue Jan 5, 2024 · 1 comment
Open

Change zenoh router configuration at run time #45

uupks opened this issue Jan 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@uupks
Copy link

uupks commented Jan 5, 2024

Describe the feature

Do we have a method or API to change the configuration of the router at runtime?

@imstevenpmwork
Copy link

Hi @uupks!

We offer an API for dynamically inserting configuration fields into an already opened session. However, it's important to note that the behavior of the session will vary depending on which configuration you're attempting to modify. As outlined in the documentation, you can add an endpoint dynamically, and this change will take effect immediately:

use zenoh::prelude::r#async::*;

let session = zenoh::open(config::peer()).res().await.unwrap();
let _ = session.config().insert_json5("connect/endpoints", r#"["tcp/127.0.0.1/7447"]"#);

Depending on the specific change you're aiming for, I would recommend moving this issue to the main zenoh repository, as it may not be specific to the zenoh-plugin-ros2dds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants