From e86eb3efb928142ad8ad3b02560ad0ce6735dd52 Mon Sep 17 00:00:00 2001 From: Mallets Date: Mon, 14 Oct 2024 13:22:59 +0000 Subject: [PATCH] deploy: d4044340a00e2af5567c3f7a6e0b10d0259015f0 --- docs/getting-started/first-app/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/getting-started/first-app/index.html b/docs/getting-started/first-app/index.html index 2098833d..94b6bc9a 100644 --- a/docs/getting-started/first-app/index.html +++ b/docs/getting-started/first-app/index.html @@ -12,7 +12,7 @@ return random.randint(15, 30) if __name__ == "__main__": - session = zenoh.open() + session = zenoh.open(zenoh.Config()) key = 'myhome/kitchen/temp' pub = session.declare_publisher(key) while True: @@ -27,7 +27,7 @@ print(f"Received {sample.kind} ('{sample.key_expr}': '{sample.payload.deserialize(str)}')") if __name__ == "__main__": - session = zenoh.open() + session = zenoh.open(zenoh.Config()) sub = session.declare_subscriber('myhome/kitchen/temp', listener) time.sleep(60)

Start the subscriber:

python3 z_subscriber.py