3.1. Define a Data Type

To distribute data using RTI Connext DDS Micro, you must first define a data type, and then run the rtiddsgen utility to generate the type-specific support code that Connext DDS Micro needs and calls to publish and subscribe that data type.

Connext DDS Micro accepts types definitions in Interface Definition Language (IDL) format.

struct HelloWorld {
       string<128> msg;

As an example, the HelloWorld examples provided with Connext DDS Micro use this simple type defined in HelloWorld.idl. It contains a string “msg” with max length of 128 chars.

For more details, see Data Types in the User’s Manual.