2CMC489001M0201
56
G13
Revision: A
User Manual
JSON Communication
Description
•
cosemversion[Int]: COSEM version
• firmwareversion[String 17]: Gateway firmware version
• hardwareversion[String 18]: Gateway hardware version
• model[String 12]: Gateway model number
• jsonapiversion[String 10]: JSON API version number
• logicaldevicename[String 17]: Gateway device name
• releasedate[String]: Gateway Firmware build release date
•
serial[Int]: Gateway serial number
• 401 Authentication
Failure
HTTP/1.1 401 Unauthorized
Server: embOS/IP
Accept-Ranges: bytes
Content-Type: text/html
6.3.2
POST /login
Creates a session for user with valid credentials.
Protected
Yes (Authentication required)
Request
POST /login HTTP/1.1
Authorization: Basic XXXXXXXXXXXXXXX=
Example
• https://192.168.1.12/login
Response
• 200 OK
HTTP/1.1 200 OK
Content-Type: application/json
Server: embOS/IP
Link:/lasterror/0
Notes
A successful response to be considered as valid login session. If user did
not change default password, provided by administrator, then server will
respond with 403 Forbidden. In such case user is expected to set password
before proceeding with other operations. JSON API users must call