Publishes a topic and its data to the MQTT server (broker).
sub mqtt_publish(byref topic as string, byref data as string)
Step-by-step Usage Instructions
The topic to be published.
The data corresponding to this topic.
Hivemq.com is has an excellent explanation of MQTT topics: http://www.hivemq.com/blog/mqtt-essentials-part-5-mqtt-topics-best-practices.