Skip to content

List devices under a hierarchy node

POST
/GetDevices
curl --request POST \
--url https://api.eianalytic.com/ApiWeb.svc/GetDevices \
--header 'Content-Type: application/json' \
--data '{ "companyId": 1, "areaId": 1, "machineCode": 1, "pointIndex": 1, "Token": "example" }'

Pass -1 in a level to leave it unfiltered.

Media typeapplication/json
object
companyId
integer
areaId
integer
machineCode
integer
pointIndex
integer
Token
required

The database token returned by Login. Sent in the request body, not in a header.

string
Examplegenerated
{
"companyId": 1,
"areaId": 1,
"machineCode": 1,
"pointIndex": 1,
"Token": "example"
}

A list of devices.

Media typeapplication/json
Array<object>
object
Key

The Key half of every response envelope.

object
StatusNumber
required

0 means OK. See the Conventions page for the full table.

integer
Description
required
string
Configs

Present on some responses; empty in the documented examples.

Array<object>
object
Value
Array<object>

A sensor as reported by GetDevices / GetDevicesByCode.

object
ID
integer
code
string
model
string
type

Sensor type code.

integer
channelCount
integer
name
string
description
string
enabled
integer
batteryVoltage
number format: float
batteryType

1 = 1/6D, 2 = AAA, 3 = CR2032, 4 = CR2477.

integer
Allowed values: 1 2 3 4
temperature

Sensor internal temperature in °C.

number format: float
signalStrengthValue

RSSI in dBm.

integer
firmwareVersion
integer
lastUpdateConfig
string
Example
[
{
"Key": {
"StatusNumber": 0,
"Description": "OK"
},
"Value": [
{
"code": "189257624",
"model": "EINAHR",
"description": "High Range Accelerometer",
"batteryType": 1,
"signalStrengthValue": -88
}
]
}
]