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