Working with data writers.
More...
Working with data writers.
Setting up a data writer
- Create a data writer, FooDataWriter, of user data type
Foo:
MyWriterListener_OfferedDeadlineMissed;
MyWriterListener_OfferedIncompatibleQos;
writer_listener.on_publication_match = MyWriterListener_PublicationMatch;
printf("***Error: failed to get default datawriter qos\n");
}
topic,
&writer_qos,
&writer_listener ,
if (writer == NULL) {
printf("***Error: failed to create writer\n");
}
Managing instances
Sending data
- Write instance of type
Foo
Tearing down a data writer
- Delete DDS_DataWriter:
printf("***Error: failed to delete writer\n");
}