fixed
API - Fixed incorrect specification
April 6th, 2021
✨ Improvements
The open-api spec (latest-samples and samples endpoints) has been updated removing a map which was incorrectly documented as containing doubles only. It now describes each sensor of the device with type (number/string)
Note: Sensors not existing on a device are not returned in the response. The example below illustrates all possible sensors (the result will vary depending on the sensors available in the device type):
{
"data": {
"battery": 0,
"co2": 0,
"humidity": 0,
"light": 0,
"mold": 0,
"pm1": 0,
"pm10": 0,
"pm25": 0,
"pressure": 0,
"radonShortTermAvg": 0,
"rssi": 0,
"sla": 0,
"temp": 0,
"time": 0,
"virusRisk": 0,
"voc": 0,
"relayDeviceType": "string"
}
}
{
"data": {
"co2": [
0
],
"humidity": [
0
],
"light": [
0
],
"mold": [
0
],
"pm1": [
0
],
"pm10": [
0
],
"pm25": [
0
],
"pressure": [
0
],
"radonShortTermAvg": [
0
],
"sla": [
0
],
"temp": [
0
],
"time": [
0
],
"virusRisk": [
0
],
"voc": [
0
]
},
"start": "2021-04-06T09:28:31.801Z",
"end": "2021-04-06T09:28:31.801Z",
"measurementSystem": "US",
"cursor": "string"
}