Install OpenVPN Client
Grid RESTful API Start-up Guide
15
Example 1
–
JSON Response:
{
"message": "Call successful",
"data": {
"gateway_1": {
"data": [
{
"parameters": {
"node_id": "1"
},
"type": "BAC_IP_Falcon_Hydronic",
"mapping": "BAC_IP_Falcon_Hydronic",
"name": "BAC_IP_Falcon_Hydronic_1_",
"path":
"/profileView/devices/BAC_IP_Falcon_Hydronic_1_",
"node": "Dev_1",
"events": {
"alarm": false,
"trouble": false,
"warning": false
},
"activeEvents": {},
"address": "1",
"location": "R&D Lab Unit 1",
"status_class": "status_normal",
"status": "Normal",
"oldStatus": "Normal",
"BOILERLEADLAGSETPOINTDEGC": 58.9
},
{
"parameters": {
"node_id": "2"
},
"type": "BAC_IP_Falcon_Steam",
"mapping": "BAC_IP_Falcon_Steam",
"name": "BAC_IP_Falcon_Steam_2_",
"path":
"/profileView/devices/BAC_IP_Falcon_Steam_2_",
"node": "Dev_2",
"events": {
"alarm": false,
"trouble": false,
"warning": false
},
"activeEvents": {},
"address": "2",
"status_class": "status_normal",
"status": "Normal",
"oldStatus": "Normal",
"BURNER_ENABLE": 1
}
]
},
"gateway_2": {
"data": [
{
"parameters": {
"node_id": "1"
},
"type": "BAC_IP_Falcon_Hydronic",
"mapping": "BAC_IP_Falcon_Hydronic",
"name": "BAC_IP_Falcon_Hydronic_1_",
"path":
"/profileView/devices/BAC_IP_Falcon_Hydronic_1_",
"node": "Dev_1",
"events": {
"alarm": false,
"trouble": false,
"warning": false
},
"activeEvents": {},
"address": "1",
"location": "R&D Lab Unit 1",
"status_class": "status_normal",
"status": "Normal",
"oldStatus": "Normal",
"BOILERLEADLAGSETPOINTDEGC": 58.9
},
{
"parameters": {
"node_id": "2"
},
"type": "BAC_IP_Falcon_Steam",
"mapping": "BAC_IP_Falcon_Steam",
"name": "BAC_IP_Falcon_Steam_2_",
"path":
"/profileView/devices/BAC_IP_Falcon_Steam_2_",
"node": "Dev_2",
"events": {
"alarm": true,
"trouble": false,
"warning": false
},
"activeEvents": {},
"address": "2",
"status_class": "status_normal",
"status": "Alarm",
"oldStatus": "Normal",
"BURNER_ENABLE": 1
}
]
}
},
"error": null
}
Example 2
– POST URL:
/rest/method/fieldpop-api/getDeviceData?happn_token=eyJ0eXAiOiJKV1QiLC
Example 2
– JSON POST:
(deviceID specified)
{
"parameters": {
"deviceID": "gateway_1"
}
}