From 8eea225d22013ed8dc629c6649dfdd26b3be3ae8 Mon Sep 17 00:00:00 2001 From: Joseph Perez Date: Tue, 12 Nov 2024 10:19:11 +0100 Subject: [PATCH] fix: remove outdated serialization API from first app --- content/docs/getting-started/first-app.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/getting-started/first-app.md b/content/docs/getting-started/first-app.md index e4d8eeea..d340cdf9 100644 --- a/content/docs/getting-started/first-app.md +++ b/content/docs/getting-started/first-app.md @@ -54,7 +54,7 @@ Now we need a subscriber, `z_subscriber.py` that can receive the measurements: import zenoh, time def listener(sample): - print(f"Received {sample.kind} ('{sample.key_expr}': '{sample.payload.deserialize(str)}')") + print(f"Received {sample.kind} ('{sample.key_expr}': '{sample.payload.to_string()}')") if __name__ == "__main__": session = zenoh.open(zenoh.Config())