我在接收事件时创建测量值,我可以使用API获取它们,但它们没有在设备管理界面中以图形方式表示。我有一个特定的格式,他们必须尊重自动表示?如果是这样,有没有可以找到QuarkIoE支持的所有格式的地方?我从文档中的示例中提取了c8y_TemperatureMeasurement,但我没有找到原始格式的详尽列表。
以下是我目前的测量示例:
{
"time": "2016-06-29T12:10:02.000+02:00",
"id": "27006",
"self": "https://<tenant-id>/measurement/measurements/27006",
"source": {
"id": "26932",
"self": "https://<tenant-id>/inventory/managedObjects/26932"
},
"type": "c8y_BatteryMeasurement",
"c8y_BatteryMeasurement": {
"unit": "V",
"value": 80
}
},
{
"time": "2016-06-29T10:15:22.000+02:00",
"id": "27010",
"self": "https://<tenant-id>/measurement/measurements/27010",
"source": {
"id": "26932",
"self": "https://<tenant-id>/inventory/managedObjects/26932"
},
"type": "c8y_TemperatureMeasurement",
"c8y_TemperatureMeasurement": {
"T": {
"unit": "C",
"value": 24
}
}
}
答案 0 :(得分:1)
测量必须按以下格式发送给QuarkIoE
{
"fragment": {
"series": {
"unit": "x",
"value": y
}
}
}