JSON Communication
G13
69
2CMC489001M0201
User Manual
Revision: A
Response
• 200 OK
HTTP/1.1 200 OK
Content-Type: application/json
Server: embOS/IP
Transfer-Encoding: chunked
Link:/lasterror/0
{
"alias":"Gateway",
"location":"All Location",
"serial":"ABBXXXXXXXXXXXX01"
}
Description
•
alias [String 21] - Gateway alias.
• location [String 51] - Location of gateway.
• serial [String 17] - Serial of gateway.
• 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.10 POST /gateway
A POST call to /gateway sets Gateway alias and location specified.
Protected
Yes (Authentication required)