# MQTT Connection

This provides a connection to User's MQTT broker. User need to provide following parameters to connect to MQTT Broker.&#x20;

* **URL** - Public URL of MQTT Broker
  * Use mqtt:// or mqtts\:// or ws\:// or wss\:// in the URL to select connection protocol with SSL/TLS option.
* **Port** - MQTT Port Number
* **AutoClientID**  - Generate random clientID for connection
* **ClientID**  - Fixed ClientID in case of AutoClientID is false
* **Username** - MQTT Username
* **Password**  - MQTT password
* **TLS** - Use TLS for Connection

![Add MQTT Connection](https://365492316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M7aTljSjWsfbXZ_OP_9%2Fuploads%2FsRGEe1eSnonnhp0n68KH%2FmqttConn.png?alt=media\&token=4e6b2c80-3bc3-4381-a57b-a5d06166031c)

Please note the following points:

{% hint style="info" %}

* For Thingsup MQTT Broker, use URL as mqtts\://mqtt.thingsup.io and Port 1883 with TLS set to true
  {% endhint %}
