Skip to content

Zenoh-pico: Using it in PEER mode #89

Closed Answered by cguimaraes
nagygabor93 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @nagygabor93,

Peer-to-peer mode in unicast (as supported by Zenoh Router) is not supported.
However, you can have peer-to-peer mode in Zenoh Pico between Zenoh Pico applications via e.g. UDP multicast.

For that, you need to change two configurations:

    const char *mode = "peer";
    char *locator = "udp/224.0.0.225:7447#iface=eth0";

    z_owned_config_t config = z_config_default();
    zp_config_insert(z_loan(config), Z_CONFIG_MODE_KEY, z_string_make(mode));
    zp_config_insert(z_loan(config), Z_CONFIG_PEER_KEY, z_string_make(locator));

Note that the locator has the iface parameter, which is mandatory for Zenoh multicast transports over UDP multicast.
The fact that you are not s…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@nagygabor93
Comment options

Comment options

You must be logged in to vote
2 replies
@nagygabor93
Comment options

@cguimaraes
Comment options

Answer selected by cguimaraes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants