5. The Reference for RPCM REST API
5.1.3 Parameters
There are two notations of parameters:
1 REST API parameters in the URL directly;
2 JSON parameters in a queries (commands). Example: {"id": 18}
5.2. Protocol Commands
5.2.1. Get Device Status
5.2.1.1. Overview
It returns the current status of RPCM in JSON format.
5.2.1.2. Get API Status
Command:
GET /api/status
Example:
curl -X GET http://192.168.1.42:8888/api/status
REPLY:
{
"rOLC": "OK",
"sNa": "OpernyiPevets",
"sNu": "RU2019060400000003MO01AM01",
"MAC": "B8F74A000306",
"hwV": 232,
"fwV": "0.10.41",
"fwRD": "20200926103429",
"rtcB": "20100104230141",
"rtc": "20110605150344",
"r": 255,
"LR": 40,
"R": 32,
"p": "YES",
"g": 150,
"temp": 37,
"b": 0,
"exB": {
"top": {
"pr": "NO",
"ms": 1214558013
},
"bottom": {
"pr": "NO",
"ms": 1933079292
}
},
"ats": {
161