Created
November 7, 2012 08:55
-
-
Save sandorkan/4030283 to your computer and use it in GitHub Desktop.
Creation of DataWriter for HelloPublisher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create the data writer using the default publisher | |
StringDataWriter dataWriter = (StringDataWriter)participant.create_datawriter( | |
helloWorldTopic, // Topic | |
Publisher.DATAWRITER_QOS_DEFAULT, // QoS | |
null, // listener | |
StatusKind.STATUS_MASK_NONE); // mask | |
if (dataWriter == null) { | |
System.err.println("Unable to create data writer\n"); | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment