The profile field of an asset defines the data type. Both simple types like integer as well as more complex and custom data types with numerous fields are possible. The full structure looks like
"asset": {
"profile": {
"type": "integer"
}
}
When setting an asset profile using AllThingsTalk Maker, ommit the asset and profile tags.
{
"type": "integer"
}
Simple profile types
Use type field to define the asset’s state data type. It describes how to interpret the asset state value(s).
String
Simple string value type
{
"type": "string"
}
If you want to define a set of valid string values
Use this field to label the unit of measurement of the physical quantity that this asset reports or actuates upon.
{
"type": "integer",
"unit" : "mV"
}
Thresholds
You can specify up to 5 threshold values for your asset, for example: minimum, optimum and maximum. These threshold constants can later be shown in device and pinboard charts.
Custom object value. The typeobject and properties fields are fixed. What these properties are, is completely up to you. Just make sure it is valid json structure. For example