Skip to content
Paul Weng edited this page May 2, 2013 · 6 revisions

This page shows the Publisher Library

Publisher.Publisher(PublisherServiceIPV4, PublisherServicePort)

  • Initialise publisher with Publisher Server's IPV4 and Port
  • Attributes: PublisterServiceIPV4 (String), PublisherServicePort (int)

Publisher.setTopic(TopicName)

  • Register a topic name to the publisher
  • Attributes: TopicName (String)

Publisher.publishOnce(Data)

  • Publish data once
  • Attributes: Data (String)

Publisher.getTopic()

  • Returns the current topic name registered. If there is no topic, return None.
  • Return type: String

Clone this wiki locally