JSON Communication
G13
221
2CMC489001M0201
User Manual
Revision: A
Note
Daytype and Season are available only if source is set to Clock.
•
200 OK
HTTP/1.1 200 OK
Content-Type: application/json
Server: embOS/IP
Transfer-Encoding: chunked
Link:/lasterror/0
{
"tariff":1,
"source":2,
"inputconfig":[1,2,3,4]
}
Description
• tariff [Int] - value between 1 to 4.
• source [Int] - [0-Clock, 1-Communication, 2-Input].
• inputconfig [Int] - length of array is equal to number of tariffs.
Example
When number of tariffs are 4 array would be [1,2,3,4]. Description of each
element of array is described below
Input 4 Input 3
1 OFF OFF
2 OFF ON
3 ON OFF
4 ON ON
Note
input is available, only if source as Input.
•
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."
}