receiveMeasures #
Receive formated measures for a device.
This action allows to receive measures without using a Decoder but it must be one of the measure defined in the device model.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_/device-manager/:engineId/devices/:_id/measures
Method: PUT
Other protocols #
{
"controller": "device-manager/devices",
"action": "receiveMeasures",
"engineId": "<engineId>",
"_id": "<deviceId>",
"body": {
"measures": [
{
"measureName": "<name of the measure>",
"measuredAt": "<timestamp of the measure>",
"type": "<type of the measure>",
"values": {
// values
},
}
],
// Optional
"payloadUuids": ["<uuid>"],
}
}
Arguments #
engineId
: Engine ID_id
: Device ID
Body properties #
payloadUuids
: Array of uuid identifying the received datameasures
: Array of formated measures
Response #
{
"status": 200,
"error": null,
"controller": "device-manager/devices",
"action": "receiveMeasures",
"requestId": "<unique request identifier>",
}
Edit this page on Github(opens new window)