![Axis 2N Indoor Touch 2.0 Скачать руководство пользователя страница 6](http://html1.mh-extra.com/html/axis/2n-indoor-touch-2-0/2n-indoor-touch-2-0_api-manual_3038317006.webp)
2N TELEKOMUNIKACE a.s., www.2n.cz
6/94
2.1 Interface
Communication is made via the HTTPS protocol, which runs on standardized port 443.
Authentication requires login and password data to be transmitted in the first
connection. Subsequently, the server returns the client a cookie with a session key for
further requests. Having failed to send more requests within a timeout (20 minutes at
present), the client will be logged out automatically. The next requests will thus return
the HTTP return code 401 (Not authorized). Then the client has to log in again.
2.1.1 Authentication
2N Indoor Touch 2.0
®
supports the following two types of authentication:
Basic – Basic authentication is required according to
. The service
RFC 2617
requires a password, which, however, is sent in an open format.
Digest – Digest authentication is required according to
.
RFC 2617
2.1.2 Requests
The client-server communication is used. The client sends a data/command execution
request and the server sends a response. The request consists of URL and optional
data in the following format:
https:
//<IP>/api/v1/<subsystem>?<parameters>
IP is the device IP address
<subsystem> designates the system part to be controlled
<parameters> includes request details
For example:
https:
//192.168.254.228/api/v1/gpio?
action=set&name=io2&type=direction&value=out
means that the client wants to switch the GPIO pin to output in the GPIO subsystem.
Содержание 2N Indoor Touch 2.0
Страница 1: ...www 2n cz 2N Indoor Touch 2 0 API guide Firmware 4 2 2 Version 4 2 2...
Страница 15: ...2N TELEKOMUNIKACE a s www 2n cz 15 94 value 1 id 6 name Relay1 value 0 id 7 name Relay2 value 0...
Страница 32: ...2N TELEKOMUNIKACE a s www 2n cz 32 94 Response data data alarmsVolume 0 musicVolume 13 ringtoneVolume 14...
Страница 75: ...2N TELEKOMUNIKACE a s www 2n cz 75 94 Request data data newPassword NewPass123 oldPassword 2n...