RTI DDS javascript set sequence fails
Hi,
I have this code written in javascript (node.js) with this package: "rticonnextdds-connector": "^0.3.3":
this.output.instance.setNumber('data[1]', 1);
this.output.instance.setNumber('data[2]', 2);
this.output.instance.setNumber('data[3]', 3);
this.output.instance.setNumber('data[4]', 4);
this.output.instance.setNumber('data[5]', 5);
The xml struct holds this member:<member name="data" sequenceMaxLength="SEQUENCE_LENGTH" type="byte"/>
and SEQUENCE_LENGTH is:
<const name="SEQUENCE_LENGTH" type="int32" value="400"/>
Everything worked just fine until I upgraded the npm pacakge to: "rticonnextdds-connector": "^1.0.0",
After the upgrade the 'write' does not work.
What can be the problem? Has the "set" API changed between 0.3.3 and 1.0.0?
Thanks in advance
Can you share the full error message?
One thing to note is that sequence indexes start at 0 since version 1.0.0. In the experimental versions the starting index was 1.
Zero-base solved the issue.
Thanks