-
Notifications
You must be signed in to change notification settings - Fork 65
API
Ivan Tustanivsky edited this page Sep 16, 2019
·
41 revisions
MQTT Client Interface
MQTT Client Interface represents the object that handles all communication with MQTT broker. It provides a set of methods that allow performing basic operations defined in MQTT protocol.
To create MQTT client call CreateMqttClient function. It takes MqttClientConfig structure as a parameter which specifies client settings like host URL, port number, client ID.
To establish connection with MQTT broker call Connect function on MQTT Client. Client connects to broker which was specified by MqttClientConfig structure during its creation. The function takes MqttConnectionData structure as a parameter which specifies users login and password.