Remote Device#
Methods#
GET#
Returns data about all the remote devices in the project.
GET /api/remote_device
Returns a JSON object with a single remote_devices
attribute, which has an array value. Each item in the array is a Remote Device object with the following attributes:
Attribute |
Value Type |
Description |
Value Example |
---|---|---|---|
|
integer |
Remote device number (address) |
|
|
string |
|
|
|
array |
Array of serial numbers (as strings) of all discovered devices matching the address and type |
|
|
array |
Array of Output objects (see table below); only returned for RIO 44 and RIO 08 on the queried controller |
|
|
array |
Array of Input objects (see table below); only returned for RIO 44 and RIO 80 on the queried controller |
|
|
boolean |
Whether the remote device is detected as being online on the local network |
|
The Output JSON object has the following attributes:
Attribute |
Value Type |
Description |
Value Example |
---|---|---|---|
|
integer |
Number of the output, as labelled on the remote device |
|
|
boolean |
|
|
The Input JSON object has the following attributes:
Attribute |
Value Type |
Description |
Value Example |
---|---|---|---|
|
integer |
Number of the input, as labelled on the remote device |
|
|
string |
|
|
|
integer or boolean |
Value type depends on input type - |
|