Hi, I am using C# to publish some of my customized data as a string with idl generated hello_world example, and I am able to recieve the string in subscriber in the form of showing them in subscriber's console.
However, I have no idea of where can I get the string via programming in subscriber. What is the precise function or method I should use to get the recieved string and use them as a variable(ex.as an int or string) so I can further process them in /*Main loop*/?
In the example code, you should find a function,
public override void on_data_available(DDS.DataReader reader) {
After calling take(), that function prints the sample:
change it to
It worked! Thank you for the help!