Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to zenoh-python 1.0.0-alpha.6 #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

neelam-kushwah
Copy link
Contributor

No description provided.

@neelam-kushwah neelam-kushwah self-assigned this Aug 17, 2024
@neelam-kushwah neelam-kushwah linked an issue Aug 17, 2024 that may be closed by this pull request
uattributes_bytes = uattributes.SerializeToString()

# Combine version bytes and uattributes bytes into one list of bytes
attachment_bytes = version_bytes + uattributes_bytes
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use attachment_bytes = [version_bytes, uattributes_bytes] and ZBytes will transform the list.

logging.debug(msg)
raise UStatusError.from_code_message(code=UCode.INVALID_ARGUMENT, message=msg)
# Convert ZBytes to a list of bytes
attachment_bytes = bytes(attachment)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use attachment_lists = attachment.deserialize(list) to transform the attachment back to the list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to 1.0.0-alpha.6: API Changes
2 participants