Install OpenVPN Client
Grid RESTful API Start-up Guide
40
2.5.4 GetDeviceDataWithTime
Description:
Retrieve the data available under the specified ProtoCast device with time stamp.
HTTP Verb:
POST
URL:
/rest/method/fieldpop-api/getDeviceDataWithTime
Parameters:
•
happn_token
- token obtained from the login request.
•
deviceID
- the IIoT gateway ID (see
Section
Example GET URL:
/rest/method/fieldpop-api/getDeviceDataWithTime?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)": {
"value": 123.55,
"time": 1550187148
},
"Current (mA)": {
"value": 130,
"time": 1550187305
}
}
}
],
"error": null
}