How can we help?

Searching:

0 results found

Devices/GetFullReadingForMultipleDevices

POST /odata/Devices/GetFullReadingForMultipleDevices

Description

Gets the last readings from multiple devices.

See the following for request and response details ‒

See Also

Request ‒ Devices/GetFullReadingForMultipleDevices

Property Type Description Mandatory
startDate Date The start date of the period for which to obtain data. Y
endDate Date The end date of the period for which to obtain data. Y
keys Array of Strings Lists the device IDs. Y

Example JSON Devices/GetFullReadingForMultipleDevices Request

curl -X POST \

https://api.stg.axonize.com/odata/devices/GetFullReadingForMultipleDevices \

-H ‘Content-Type: application/json’ \

-H ‘Authorization: Token’ \

-H ‘appId: a6bc787b-bccc-1234-a35b-5f587026d2ab’ \

-d ‘{“startDate”:”2018-02-03T05:43:00.135Z”,”endDate”:”2018-04-04T05:43:00.135Z”,”keys”:[“5aba6aa3dc7cde240cc21234”]}’

Response ‒ Devices/GetFullReadingForMultipleDevices

Property Type Description
value Array of Readings Lists the device readings.

Example JSON Devices/GetFullReadingForMultipleDevices Response

Status 200 – OK

{

“@odata.context”: “https://stg-axonizeapi-axonize.stg-ase-axonize.p.azurewebsites.net/odata/$metadata#Collection(Axonize.Common.Models.NonSql.lastReading)”,

“value”: [

{

“type”: 7,

“datetime”: “2018-04-04T05:42:14Z”,

“name”: “Temperature”,

“value”: “34”,

“unit”: “C”,

“deviceId”: “5aba6aa3dc7cde240cc21234”

},

{

“type”: 7,

“datetime”: “2018-04-04T05:32:14Z”,

“name”: “Temperature”,

“value”: “22”,

“unit”: “C”,

“deviceId”: “5aba6aa3dc7cde240cc21234”

}

]

}