You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This first test demonstrates the real-time publish/subscribe model using two Raspberry Pi devices.
11
+
This example demonstrates Zenoh's real-time publish/subscribe model across two Raspberry Pi devices.
12
12
13
-
The following command is to initiate a subscriber for a key expression `demo/example/**`, a set of topics starting with the path `demo/example`.
13
+
The subscriber listens for all data published under the key expression `demo/example/**`, which matches any topic beginning with `demo/example/`.
14
14
15
-
### Step 1: Run subscriber
15
+
##Start the subscriber node
16
16
17
17
Run the subscriber example on one of the Raspberry Pi systems.
18
18
@@ -21,7 +21,7 @@ cd ~/zenoh/target/release/examples
21
21
./z_sub
22
22
```
23
23
24
-
### Step 2: Run publisher
24
+
##Start the publisher node
25
25
26
26
Then, log in to the other Raspberry Pi and run the publisher.
27
27
@@ -30,12 +30,19 @@ cd ~/zenoh/target/release/examples
30
30
./z_pub
31
31
```
32
32
33
+
{{% notice Tip %}}
34
+
You can run both `z_sub` and `z_pub` on the same device for testing, but running them on separate Raspberry Pis demonstrates Zenoh’s distributed discovery and cross-node communication.
0 commit comments