# Add MQTT Device

### Add Device

![Add MQTT Device](https://365492316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M7aTljSjWsfbXZ_OP_9%2Fuploads%2F5zaCwui4C7o5TscHniHT%2FaddDevice.png?alt=media\&token=140dee8b-b61a-42e5-acad-61bfe3ff4e09)

While adding a device, you need to provide following parameters:

* Device Key
* Password for Your Device&#x20;
* Name of Your Device
* Category for Your Device
* Client ID
* Access control topic with pub, sub or pubsub options

#### Device Key

Entered Device Key will be the Username for MQTT Connection. It always starts with the User's Account ID.

#### Password for your Device

Entered password will be considered as password for MQTT Connection.

{% hint style="info" %}
Please make sure you have noted down password because it will not shown anywhere once device get added.
{% endhint %}

#### Name for your Device

User can give a name for a device. Later user can search device by its name.

#### Category for your Device

User can assign a Category for device. It will be helpful for sorting devices by their category.

#### Client ID

Entered client ID will get used for MQTT Connection.

* Case 1: User can provide fixed client ID.&#x20;
* Case 2: If user is dynamically generating client Id in his code,  then he can provide client ID as **\*.**&#x20;
* Case 3: If single MQTT client is used by many devices then user has to keep it as "**\*".**
