Install OpenVPN Client
Grid RESTful API Start-up Guide
16
Example 2
– JSON Response:
{
"message": "Call successful",
"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
}
],
"error": null
}
Example 3
– POST URL:
/rest/method/fieldpop-api/getDeviceData?happn_token=eyJ0eXAiOiJKV1QiLC
Example 3
– JSON POST:
(path specified, but no IIoT device selector or dataFilter)
{
"parameters": {
"path": [
"name",
"type",
"status",
"BOILERLEADLAGSETPOINTDEGC",
"BURNER_ENABLE"
]
}
}
Example 3
– JSON Response:
{
"message": "Call successful",
"data": {
"gateway_1": {
"data": [
{
"type": "BAC_IP_Falcon_Hydronic",
"name": "BAC_IP_Falcon_Hydronic_1_",
"status": "Normal",
"BOILERLEADLAGSETPOINTDEGC": 58.9
},
{
"type": "BAC_IP_Falcon_Steam",
"name": "BAC_IP_Falcon_Steam_2_",
"status": "Normal",
"BURNER_ENABLE": 1
}
]
},
"gateway_2": {
"data": [
{
"type": "BAC_IP_Falcon_Hydronic",
"name": "BAC_IP_Falcon_Hydronic_1_",
"status": "Normal",
"BOILERLEADLAGSETPOINTDEGC": 58.9
},
{
"type": "BAC_IP_Falcon_Steam",
"name": "BAC_IP_Falcon_Steam_2_",
"status": "Alarm",
"BURNER_ENABLE": 1
}
]
}
},
"error": null
}