Skip to content

Commit

Permalink
Merge pull request #85 from atolab/fix/first_app_to_string
Browse files Browse the repository at this point in the history
fix: remove outdated serialization API from first app
  • Loading branch information
Mallets authored Nov 12, 2024
2 parents 98f7f3e + 8eea225 commit 0cddaf8
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 0cddaf8

Please sign in to comment.