mqtt_publish()

Top  Previous  Next

Description:

Publishes a topic and its data to the MQTT server (broker).

Syntax:

sub mqtt_publish(byref topic as string, byref data as string)

Returns:

---

See Also:

Step-by-step Usage Instructions

 


Part

Description

topic

The topic to be published.

data

The data corresponding to this topic.

Details

Hivemq.com is has an excellent explanation of MQTT topics: http://www.hivemq.com/blog/mqtt-essentials-part-5-mqtt-topics-best-practices.