Skip to content

MindConnect Async API – Samples

The code given below is just a .json representations of the Timeseries format.

Topic Structure

EU1

MQTT Broker for MindSphere which offers below described topics:

tc/{tenantId}/{clientId}/o/mc_v3/ts

EU2

MQTT Broker for MindSphere which offers below described topics.

The actual IoTHub Broker URL is provided by DPS, during the onboarding flow.

devices/{clientId}/messages/events/mc_v3=ts

Ingest timeseries data

Timeseries Message:

Message contains an array of samplings. Each sampling consists of a timestamp and an array of value objects. Each value object consists of data point id, value and quality code.

{
  "timeseries": [
    {
      "timestamp": "2020-08-01T00:15:10.100Z",
      "values": [
        {
          "dataPointId": "rotationPerMinute",
          "value": "600",
          "qualityCode": "0"
        },
        {
          "dataPointId": "temperature",
          "value": "1.3",
          "qualityCode": "-1"
        },
        {
          "dataPointId": "gearPosition",
          "value": "1",
          "qualityCode": "0"
        },
        {
          "dataPointId": "curve",
          "value": "381,2776,6586,9362,11268,12139,12247,12574,12846",
          "qualityCode": "0"
        }
      ]
    }
  ]
}

Any questions left?

Ask the community


Except where otherwise noted, content on this site is licensed under the MindSphere Development License Agreement.


Last update: July 29, 2022