MSA Grid RESTful API Startup Manual page 23

Table of Contents

Advertisement

JSON Response: data object containing an Array of filtered query response objects.
Example 1 – GET URL: (HTTP GET with "deviceID" parameter not specified - will send to all
gateways you have access to)
/rest/method/fieldpop-api/getDeviceData?happn_token=eyJ0eXAiOiJKV1QiLC&deviceAPIVersion=2
Example 1 – JSON Response:
{
"message": "Call successful",
"error": null,
"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": 42.70000076293945,
"type": "REAL"
},
"lastRead": 1513687777060,
"log": {
"enabled": false,
"keys": []
}
}
}
},
"analog-input:2": {
"objectType": "analog-input",
"objectInstance": 2,
"objectName": "OUTSIDE_TEMPERATURE",
"properties": {
"present-value": {
"propertyIdentifier": "present-value",
"value": {
"value": 39.79999923706055,
"type": "REAL"
},
"lastRead": 1513687777060,
"log": {
"enabled": true,
"keys": [
"1/analog-input:2/present-value"
]
}
}
}
}
}
},
{
"deviceInstance": 2,
"deviceName": "WeatherLink_2",
"pollInterval": 5,
"offline": false,
"objects": {
}
}
]
},
"gateway_2": {
"data": [
{
"deviceInstance": 1,
"deviceName": "WeatherLink_1",
"pollInterval": 5,
"offline": false,
"objects": {
Grid RESTful API Start-up Guide
Install OpenVPN Client
"analog-input:1": {
"objectType": "analog-input",
"objectInstance": 1,
"objectName": "INSIDE_TEMPERATURE",
"properties": {
"present-value": {
"propertyIdentifier": "present-value",
"value": {
"value": 87.69999694824219,
"type": "REAL"
},
"lastRead": 1513687777497,
"log": {
"enabled": false,
"keys": []
}
}
}
},
"analog-input:2": {
"objectType": "analog-input",
"objectInstance": 2,
"objectName": "OUTSIDE_TEMPERATURE",
"properties": {
"present-value": {
"propertyIdentifier": "present-value",
"value": {
"value": 77.5999984741211,
"type": "REAL"
},
"lastRead": 1513687777497,
"log": {
"enabled": true,
"keys": [
"2/analog-input:2/present-value"
]
}
}
}
}
"analog-input:1": {
"objectType": "analog-input",
"objectInstance": 1,
"objectName": "INSIDE_TEMPERATURE",
"properties": {
"present-value": {
"propertyIdentifier": "present-value",
"value": {
23

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Grid RESTful API and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents