RTI DDS javascript set sequence fails

3 posts / 0 new
Last post
Offline
Last seen: 1 month 2 weeks ago
Joined: 04/22/2019
Posts: 6
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);
 
        this.output.write();
 
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

Offline
Last seen: 3 days 37 min ago
Joined: 04/02/2013
Posts: 152

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.

Offline
Last seen: 1 month 2 weeks ago
Joined: 04/22/2019
Posts: 6

Zero-base solved the issue.

Thanks