MQTTClient object
The MQTTClient object is a client in the MQTT communication process that provides a set of methods (connecting to a broker, creating subscriptions, and sending messages, and so on) and event responses (receiving messages and disconnecting). These methods must be called through an instance object of the class.
An instance of MQTTClient (for example,
mqttClient
) can be created by the MQTTFactory method CreateClient
using the following VBA code.Dim mqttClient As MQTTClient Set mqttClient = MqttFactory.CreateClient()
Properties
Methods
Events
Provide Feedback