2.5.3
GetDeviceData
Description: Retrieve the data available under the specified ProtoCast device.
HTTP Verb: POST
URL:
/rest/method/fieldpop-api/getDeviceData
Parameters:
•
happn_token - token obtained from the login request.
•
deviceID - the IIoT gateway ID (see Section 3.1.1).
Example GET URL:
/rest/method/fieldpop-api/getDeviceData?happn_token=eyJ0eXAiOiJKV1QiLC
Example 3 – JSON Payload:
{
"parameters": {
"deviceID": "FB4CC9BD94ADE5D"
}
}
Example JSON Response:
{
"message": "Call successful",
"data": [
{
"ProtoCast": {
"type": "ProtoCast",
"name": "Socomec",
"path": "/Fieldcast/devices/Socomec",
"status": "Normal",
"status_class": "status_normal",
"events": {
"alarm": false,
"warning": false,
"trouble": false
},
"points_count": 2,
"Volts (V)": 123.9,
"Current (mA)": 120
}
}
],
"error": null
}
Grid RESTful API Start-up Guide
Install OpenVPN Client
39
Need help?
Do you have a question about the Grid RESTful API and is the answer not in the manual?
Questions and answers