Install OpenVPN Client
Grid RESTful API Start-up Guide
28
Example 5
– JSON Response:
{
"message": "Call successful",
"data": [
{
"deviceName": "WeatherLink_1",
"offline": false,
"objects/analog-input:1/objectName": "INSIDE_TEMPERATURE",
"objects/analog-input:1/properties/present-value/value": {
"value": 41.599998474121094,
"type": "REAL"
},
"objects/analog-input:1/properties/present-value/lastRead": 1513692583828
}
],
"error": null
}
Example 6
– URL:
(HTTP POST with "deviceFilter" parameter specified instead of "deviceID")
/rest/method/fieldpop-api/getDeviceData?happn_token=eyJ0eXAiOiJKV1QiLC
Example 6
– JSON body:
{
"parameters": {
"deviceFilter": {
"state": {
"$eq": "Alarm"
}
},
"deviceAPIVersion": "2"
}
}
Example 6
– JSON Response:
{
"message": "Call successful",
"data": {
"gateway_1": {
"data": [
{
"deviceInstance": 1,
"deviceName": "WeatherLink_1",
"pollInterval": 5,
"offline": false,
"objects": {
"analog-input:1": {
"objectType": "analog-input",
"objectInstance": 1,
"objectName": "INSIDE_TEMPERATURE",
"properties": {
"present-value": {
"propertyIdentifier": "present-value",
"value": {
"value": 41.5,
"type": "REAL"
},
"lastRead": 1513693293092,
"log": {
"enabled": false,
"keys": []
}
}
}
},
"analog-input:2": {
"objectType": "analog-input",
"objectInstance": 2,
"objectName": "OUTSIDE_TEMPERATURE",
"properties": {
"present-value": {
"propertyIdentifier": "present-value",
"value": {
"value": 38.89999771118164,
"type": "REAL"
},
"lastRead": 1513693293092,
"log": {
"enabled": true,
"keys": [
"1/analog-input:2/present-value"
]
}
}
}
}
}
},
{
"deviceInstance": 2,
"deviceName": "WeatherLink_2",
"pollInterval": 5,
"offline": false,