Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The message for sensor data is a JSON object that contains an array of objects. Each object has six properties:

...

Login

...

Sensor login field (used as a unique identifier in the batch data POST).

...

Timestamp

...

A Unix timestamp in milliseconds that represents the time when the data was collected.

...

Quantity

...

A string that represents the quantity of data collected.

...

Data Properties

Data payload JSON object that contains an array of objects. Each object has six properties:

Login

Sensor login field (used as a unique identifier in the batch data POST).

Timestamp

...

A Unix timestamp in milliseconds that represents the time when the data was collected.

Quantity

...

A string that represents the quantity of data collected.

Value

...

A string that represents the value of the data collected.

Unit

...

A string that represents the unit of measurement for the data collected.

DataType

...

A string that represents the type of data collected.

ValueOK

...

A boolean value that indicates whether or not the value of the data collected is valid. If not valid, the sensor will be highlighted in the 3D application.

Supported Data Types The following data types are supported by Twinzo's API:

  • Byte, SByte

  • Int32, UInt32, Int16, UInt16, Int64, UInt64

  • Single, Double, Decimal

  • Char, String

  • Boolean

  • DateTime

Info

...

Every value is passed to the JSON object as a string in parenthesis. Twinzo API parses value according to the data type specified. The default data type is String. For example, Boolean and numeric values will look like this:

  • "Value": "true"

  • "Value": "123"

...

Child Pages For more information on integrating data with Twinzo, visit the following child pages:

...

Localization Data Integration

...