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

Setting DataWriter representation #58

Open
sanderkukk opened this issue Nov 21, 2022 · 1 comment
Open

Setting DataWriter representation #58

sanderkukk opened this issue Nov 21, 2022 · 1 comment

Comments

@sanderkukk
Copy link

sanderkukk commented Nov 21, 2022

What is the correct format or is it possible to set the DataWriter representation?
In OpenDDS 3.16 the default was set to "DDS::XCDR2_DATA_REPRESENTATION"
Is it possible to set it to "DDS::XCDR_DATA_REPRESENTATION" through create_datawriter QoS?

I tried to set: { ...qualityOfService, representation: { value: "DDS::XCDR_DATA_REPRESENTATION" } }

and it seems it is an array :

{ ...qualityOfService, representation: { value: ["DDS::XCDR_DATA_REPRESENTATION", "DDS::XCDR2_DATA_REPRESENTATION"] } }

but this does not seem to set because in the debug logs I still get : dds_demarshal: Deserializing with encoding kind XCDR2.

Any pointers?

@mitza-oci
Copy link
Member

The type of the "representation" QoS is an array. This type is used for both the reader and the writer. When it's used as part of the writer's QoS the array must have exactly one value in it. That value determines how the writer encodes its data.

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

No branches or pull requests

2 participants