2N TELEKOMUNIKACE a.s., www.2n.cz
28/42
1
. Event.KeyPressed Key=
1
2
. Action.SendHttpRequest uri=https:
//10.27.1.32/api/v1/login?
login=Admin&password=2n; event=1
As a result,
logs in to
HTTP API when you press button
2N Helios IP
2N Indoor Touch
®
1.
4.2.1.2 Logout
The logout helps you log out the currently logged-in session.
URL:
http://<IP>/api/v1/logout
HTTP method:
GET
Request body:
N/A
Response code:
200 if everything is OK, otherwise 401,405,...
Response data:
N/A
4.2.2 GPIO
4.2.2.1 GPIO List Getting
The list of GPIOs (eight at present) stored in the array container is returned. Name
{in1, in2, out1, out2, io1, io2, relay1, relay2} is the input identifier that is subsequently
used for GPIO identification in the HTTP API communication too. Direction takes the
values {in, out, io}.
URL:
https://<IP>/api/v1/gpio/caps
HTTP method:
GET
Request body:
N/A