From 159422da6f0db5616a185a78d55e9baabba997ae Mon Sep 17 00:00:00 2001 From: Matt Date: Fri, 20 Sep 2024 12:58:04 -0400 Subject: [PATCH] Update first-app.md with default config on open Added `zenoh.Config()` to both z_sensor.py and z_subscriber.py to prevent zenoh.open() from throwing an error. --- content/docs/getting-started/first-app.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/getting-started/first-app.md b/content/docs/getting-started/first-app.md index 13df241c..9e49d078 100644 --- a/content/docs/getting-started/first-app.md +++ b/content/docs/getting-started/first-app.md @@ -37,7 +37,7 @@ def read_temp(): 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: @@ -57,7 +57,7 @@ def listener(sample): 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) ```