Device Credentials
The Device Token and MQTT password that let a device connect
Each device signs in to the MQTT broker with its own credentials. A device can only reach its own topics, so one leaked credential never exposes another device.
| Credential | Used as | Where to find it |
|---|---|---|
| Device Token | MQTT username, and recommended client ID | Device → Settings (and in its topics on Overview) |
| MQTT password | MQTT password | Generated on Device → Settings. Shown once |

Device Token
- Generated automatically when the device is created, for example
dev_9f2c41a7…. - Used as the MQTT username, and part of every topic for the device.
- Can be replaced with Generate new token on Settings. The old token stops working immediately. Update the device's username and its topics, because the token is part of the topic path. The MQTT password doesn't change.
MQTT password
- Created when you click Generate Password. It's a long random string.
- Stored securely, so Sensorclouds can't show it again. If you lose it, generate a new one.
- Generating a new password replaces the old one. Update the device right away, or it won't be able to reconnect.
Never share one set of credentials between devices, and never commit credentials to a public code repository.
Client ID
Use the Device Token as the MQTT client ID. Other client IDs may be refused when your platform enforces client-ID matching, so using the token avoids surprises.
Rotating credentials
Generate a new password (or regenerate the token).
Update the device's configuration.
Restart the device's MQTT connection and confirm it appears in Live Data.
Rotate credentials when a device changes hands, when it's returned from the field, or if you suspect they've been exposed.
Troubleshooting
| Problem | Fix |
|---|---|
| The device can't connect after a password change | Update the password on the device, then reconnect |
| The device connects, but nothing appears after a token change | Update the token in the topic path as well as the username |
| You lost the password | Generate a new one. The old one can't be recovered |