Protocol Matrix
| Protocol | Default Port | Authentication | Typical Hardware |
|---|---|---|---|
| MQTT 5.0 over TLS | 8883 |
DeviceKey + AccessToken |
ESP32, STM32, 4G Cat.1, Raspberry Pi |
| HTTP / HTTPS REST | 443 |
Bearer AccessToken |
Low-frequency sensors, Webhooks |
| Modbus RTU / TCP | Gateway bridge | Gateway credentials + slave ID | Siemens PLC, ABB VFD, RS485 meters |
| LoRaWAN | NS Webhook | Project inbound secret | LoRaWAN gateways & soil/weather sensors |
Standard MQTT Topics
- Publish attributes:
attributes(JSON key-value payload persisted to TimescaleDB and evaluated by rules) - Subscribe desired shadow:
attributes/push(real-time cloud-to-device property updates) - Receive commands (RPC):
command/send/+(reply tocommand/reply/<id>after execution)
Connecting Legacy RS485 / PLC Hardware via 4G DTU
Configure your rail-mounted 4G DTU without touching PLC firmware:
- Point the DTU to your MQTT TLS endpoint (
8883); - Enter the ThingsLink
DeviceKeyandAccessToken; - Map Modbus RTU holding registers to JSON attribute keys (
kwh,voltage_a,rpm).
Zero-Downtime Credential Rotation
Never hardcode production
AccessTokenvalues in public repositories.
Use Reset AccessToken in the device detail view to immediately invalidate a leaked token while preserving DeviceKey continuity.