Skip to content

Commit

Permalink
fix: remove outdated serialization API from first app
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfo committed Nov 12, 2024
1 parent 98f7f3e commit 8eea225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/docs/getting-started/first-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 8eea225

Please sign in to comment.