Sensorclouds
Devices

Device Credentials

The Device Token and MQTT password that let a device connect

ADMIN ENGINEER

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.

CredentialUsed asWhere to find it
Device TokenMQTT username, and recommended client IDDevice → Settings (and in its topics on Overview)
MQTT passwordMQTT passwordGenerated on Device → Settings. Shown once

The MQTT Credentials section on the device Settings tab

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

ProblemFix
The device can't connect after a password changeUpdate the password on the device, then reconnect
The device connects, but nothing appears after a token changeUpdate the token in the topic path as well as the username
You lost the passwordGenerate a new one. The old one can't be recovered

Next Steps

On this page