A TLS topic that belongs to one device.
Devicecamp uses Mosquitto with per-device usernames, client IDs and topic ACLs. Public connections are TLS-only on port 8883.
Create MQTT credentials
Open Manage device and create the MQTT credential. Save the password; Devicecamp only shows it once.
Publish a test message
Use the exact host, client ID, username, password and topic returned by the interface.
mosquitto_pub -h mqtt.devicecamp.app -p 8883 \
--cafile /etc/ssl/certs/ca-certificates.crt \
-i MQTT_CLIENT_ID -u MQTT_USERNAME -P 'MQTT_PASSWORD' -q 1 \
-t 'v1/devices/DEVICE_ID/telemetry' \
-m '{"temperature":22.4,"humidity":51}'Reconnect deliberately
Use QoS 1, an exponential reconnect delay and the platform CA chain. Never share credentials between devices.