Unsubscribe method
Unsubscribes from an MQTT topic.
Syntax
retCode
= mqttClient
.Unsubscribe
(unSubOption As MQTTUnsubscribeOption
)where
retCode
- is a constant of the MqttUnsubscriptionCode object.mqttClient
- is an MQTTClient object created by the MQTTFactory object's method CreateClient
.Example
Dim retCode As MqttUnsubscriptionCode Dim unSubOption As MQTTUnsubscribeOption Set unSubOption = mqttClient.CreateUnsubscribeOption unSubOption.Topic = "Topic" retCode = mqttClient.Unsubscribe(unSubOption)
Provide Feedback