Featured image of post How to use Zenoh for cross-device communication

How to use Zenoh for cross-device communication

Zenoh allows users to send broadcast messages to all subscribers.

Install

1. Install rust

MacOS / Linux

$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Windows

2. Download and build source code

  1. Download sourece code from GitHub : https://github.com/eclipse-zenoh/zenoh/archive/refs/heads/master.zip
  2. Unzip the zip file
  3. $ cargo build --release --all-targets

3. Run demo

start pub (on terminal)

$ ./target/release/examples/z_pub -k demo/example/test -l tcp/127.0.0.1:7447

start sub (on another terminal)

$ ./target/release/examples/z_sub -k demo/example/test

Refer

  1. https://zenoh.io
  2. https://github.com/eclipse-zenoh/zenoh  
Licensed under CC BY-NC-SA 4.0