2CMC489001M0201
68
G13
Revision: A
User Manual
JSON Communication
Response
• 200 Success
HTTP/1.1 200 OK
Content-Type: application/json
Server: embOS/IP
Transfer-Encoding: chunked
Link:/lasterror/0
{"status":"success"}
• 400 Bad Request
HTTP/1.1 400 Bad Request
Server: embOS/IP
Accept-Ranges: bytes
Content-Length: 57
Content-Type: application/json
{
"status":"error",
"des":"missing baudrate in JSON ."
}
• 500 Internal Server Error
HTTP/1.1 500 Internal Server Error
Server: embOS/IP
Accept-Ranges: bytes
Content-Length: 64
Content-Type: application/json
{
"status":"error",
"des":"received invalid response from COSEM."
}
6.3.9
GET /gateway
A GET call to /gateway returns alias, location and serial.
Protected
Yes (Authentication required)
Request
GET /gateway HTTP/1.1
Authorization: Basic XXXXXXXXXXXXXXX=
Example
• https://192.168.1.12/gateway