1. Create a Project and Device
Sign in to the ThingsLink console and connect your first device in 3 steps:
- Click New Project, choose your region (e.g.
sh-1), and pick a billing mode (SUBSCRIPTIONorPREPAID_USAGE). - Open Devices → Add Device to generate a unique
DeviceKeyandAccessToken. - For fleets of identical hardware, define a reusable Device Type with typed properties, events, and commands.
Every core ThingsLink table enforces PostgreSQL
FORCE RLSat the database level so tenant and project data remain strictly isolated.
2. Ingest Telemetry via HTTP
Test ingestion immediately with curl — no SDK required:
curl -X POST "https://api.thingslink.example/api/v1/devices/<DEVICE_KEY>/attributes" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"temperature": 24.6,
"humidity": 58,
"battery": 96
}'
Once 202 Accepted returns, inspect live attributes and TimescaleDB time-series charts inside the device detail view.
3. Stream via MQTT 5.0 (TLS 8883)
Connect any standard MQTT 5.0 client (mosquitto_pub, ESP32, or 4G DTU):
mosquitto_pub \
-h mqtt.thingslink.example -p 8883 \
-u "<DEVICE_KEY>" -P "<ACCESS_TOKEN>" \
-t "attributes" \
-m '{"temperature": 25.1, "valve": "OPEN"}'
Next Steps
- Read MQTT, HTTP & 4G DTU Connectivity for Modbus gateways and TLS best practices;
- Read Alarms & Closed-Loop Automation to wire automated rules and notifications.