MqttTopic

Description

The MqttTopic object represents an MQTT topic identified by its name. MQTT topics can be either subscribed or published and need to be specified within MqttSubscription or MqttPublication objects.

The DataObject.name property holds the name of the topic, e.g. machine/sensor0. More information on MQTT topic names is available at mosquitto.org.

The DataObject.data property holds the data to publish or the subscribed (received) data.

› Inherits:DataObject

Properties

Example

See MqttClient example on how to use MqttTopic.