Data
Data includes both the measured values (metrics) and the conditions/state of the device. The ThingsHub provides four tools to work with and organize data: Data Tables, Dashboards, Integrations, and the built-in message broker.
Storing, monitoring, & analyzing device telemetry data
Data tables. Store, organize, and inspect data from multiple devices in a single place.
By default, device data is only stored temporarily in the thingsHub. To store data for a longer term, you will need to create a data table.
Data tables are used to store and monitor data from multiple devices that have been grouped according to a shared characteristic called a label.
The stored data can then be used to visualize the data in Dashboards. Data stored in data tables can also be exported, such as CSV files exported to an external SFTP server.
To view existing an existing table's data, go to Data > Data Tables and select the table's Edit button.
Integrations: Forward data from one or multiple devices to external systems.
Integrations can be created for different target systems and protocols.
Like for Data Tables, which data to forward is selected based on the devices' labels.
Dashboards. Visualize, analyze and monitor data from one or multiple devices.
Information from the Data Table is also used to present data in the visualizer dashboard. The Data Table can also be used on the Dashboards page for visualization and alerting.
Subscribing to data via the built-in message broker
The thingsHub provides a built-in, MQTT-based message broker, to which you can subscribe to receive live sensor data.
Accessing the built-in message broker
The message broker is accessible via a websocket interface. To access this interface, use the following connection information:
Parameter | Description |
---|---|
Host | Your tenant’s URL, e.g. https://your-company.eu1.thingshub.com |
Port | 443 (currently, only MQTT over websocket is supported) |
Schema | Secure websocket (WSS) |
Path | /mqtt |
Username | Use your thingsHub username |
Password | Use your thingsHub password |
Topic | One of the topic names documented below |
Keep Alive | < 60s |
The below table provides topic descriptions:
Topic | Description |
---|---|
| Updates to the device’s data table |
| Updates to the Device’s state |
| Raw device uplinks (with metadata) |
| Data from the devices |
| Updates to the tracked asset |
For descriptions of the message formats, see the section Native Output Format below.
Examples for basic topic subscriptions
To subscribe to all devices’ data updates using a single subscription, use MQTT's wildcard operator, e.g.
thingshub/devices/#
to receive all updates from all topics with prefixthingshub/devices/#
.To subscribe to the device
my-device
’s data updates, usethingshub/devices/my-device/uplink
.If you want to subscribe to a subset of devices instead of only a single one or all of them, create a built-in MQTT broker integration, then subscribe to the topic shown in that integration.
Native Data Format
The built-in MQTT broker, the external MQTT-broker, and the websocket integration all use the thingsHub’s native data format in its messages. This format exists for updates and state messages and is documented below for each.
Uplinks
CODE
|
State
CODE
|
Exporting data to external downstream servers and IT systems
See Integrations