SensusRF gateway user manual
| 29/10/2019
Host: 192.168.7.2
17.2.5.2 Response
RESPONSE
TAG DESCRIPTION
api_version The version of the GATEWAY REST API
request_status The status of the request
payload The payload of the requested information
temperature Gateway temperature in Celsius degrees
Example:
HTTP/1.1 200 OK
X-Powered-By: CAS_GATEWAY
Server: CAS_GATEWAY
Content-type: text/html
Content-Length: 74
Date: Thu, 15 Aug 2019 17:41:06 GMT
{
"api_version":"1.0",
"request_status":"OK",
"payload":{
"temperature":"23"
}
}
17.2.6 Read door sensor
The “read door sensor” method returns a JSON embodying the GATEWAY door sensor status, which
can be “opened” or “closed”. The method must contain the JWS in its HTTP header as “Authorization”.