In the Chatter tutorial example, the MessageBoard and the Chatter do not attach to the same topic. The Chatter publishes the ChatMessage topic, but the MessageBoard subscribes to the NamedMessage topic.
The NamedMessage topic in this case simulates the behaviour of a multitopic that merges data from both the NameService and the ChatMessage into 1 combined datatype called NamedMessage. The merge process is performed in the multitopic.c file.
If the string you added to ChatMessage should become visible to the MessageBoard as well, you should add such a string to the NamedMessage datatype as well, and make sure the merge function in multitopic.c also copies the testString from ChatMessage to NamedMessage.
Hope that solves your problem.
posted on Tuesday, January 26, 2010 - 03:11 pm