subscribeTopic

open fun subscribeTopic(topic: MPLiveTopic)

Subscribes to a topic with a LiveTopicCriteria

Parameters

topic

The LiveTopicCriteria for setting up the subscription

Throws

org.eclipse.paho.client.mqttv3.MqttException

a MqttException if something unexpected happens