From OpenSCADAWiki
Jump to: navigation, search
Structure of the request.
Requests

REQ: "SES_OPEN {user} {password}\n"
REZ OK: "REZ 0 {ses_id}\n"
REZ ERR: "REZ 1 Error authentication: wrong user or password.\n"
Request to open a session from the username user with the password. In case of success, the session ID will be received, otherwise, the code and the error message.

REQ: "SES_CLOSE {ses_id}\n"
REZ: "REZ 0\n"
Closure of the session. The result is always successful.

REQ: "REQ {ses_id} {req_size}\n{command of the control interface}"
REQ: "REQDIR {user} {password} {req_size}\n{command of the control interface}"
REZ OK: "REZ 0 {rez_size}\n{result of the command of the control interface}"
REZ ERR: "REZ 1 Error authentication: session is not valid.\n"
REZ ERR: "REZ 2 {error of the control interface}"
Basic queries — session and direct ones. Implemented by sending a standard command of the OpenSCADA Control Interface in the command of the control interface field. The result will be the response of the Control Interface result of the command of the control interface or one of the errors.

REQ: "{Error sequence}"
REZ ERR: "REZ 3 Error the command format.\n"
Any invalid request.