How does my device connect over MQTT?
A direct MQTT device connects to our broker itself:
- Host and port:
mqtt.synacl.com, port8883, with TLS on. If your client can only use WebSockets, connect towss://mqtt.synacl.com/mqtt. Plain port 1883 can't be reached from the internet. - Username and password: these are shown once, in a window right after you create the device. If you lose them, open the device and click Reset MQTT password. You get a new password and the device's current connection is closed, so update the device with the new password.
- Client ID: pick an ID that no other connection uses. The device ID works well. Two connections with the same client ID keep disconnecting each other.
It publishes JSON under its topic:
tenants/{tenantId}/devices/{deviceId}/data
Keep your publish rate under your plan's limits or messages are dropped. Gateway-mediated devices don't need their own MQTT setup — the gateway handles the connection for them.