From e207b21774be356023c67c4933e3dd57715e871c Mon Sep 17 00:00:00 2001 From: Mallets Date: Tue, 12 Nov 2024 14:37:32 +0000 Subject: [PATCH] deploy: 48a1e7b230b2b0aec75737e85751ece9657a3e60 --- docs/getting-started/first-app/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started/first-app/index.html b/docs/getting-started/first-app/index.html index 665ca4d..09b67fd 100644 --- a/docs/getting-started/first-app/index.html +++ b/docs/getting-started/first-app/index.html @@ -3,7 +3,7 @@

Your first Zenoh app

Let us take a step-by-step approach in putting together your first Zenoh application in Python. As the first step, let us see how we get some data from a temperature sensor in our kitchen. Then we see how we can route this data to store and perform some analytics.

Before cranking some code, let’s define some terminology.

Zenoh deals with keys/values where each key is a path and is associated to a value. A key looks like just a Unix file system path, such as myhome/kitchen/temp. The value can be defined with different -encodings (string, JSON, raw bytes buffer…).

Let’s get started!

Pub/sub in Zenoh

First thing first, we need to install the zenoh Python library.

pip install eclipse-zenoh==1.0.0rc1
+encodings (string, JSON, raw bytes buffer…).

Let’s get started!

Pub/sub in Zenoh

First thing first, we need to install the zenoh Python library.

pip install eclipse-zenoh
 

The examples are updated to use the 1.0 version currently in rc, which is why version must be specified in the installation command. You can find more information about the 1.0 changes in the migration guides.

Then, let’s write an application, z_sensor.py that will produce temperature measurements at each second:

import zenoh, random, time
 
 random.seed()