2N TELEKOMUNIKACE a.s., www.2n.cz
29/42
Response code:
Standard HTTP response code, treating syntactic errors
Response data:
{
"data"
: {
"success"
: <
boolean
>,
"array"
: [
{
"direction"
:
"<direction>
"
,
"index"
: <i/o index>,
"name"
:
"<i/o
identifier>"
},
...
]
}
}
4.2.2.2 Input Value Getting
Get the input value and/or switchable IO direction. Name – GPIO name, refer to 4.2.2.1
. Type can have the values {value, direction}.
Získání seznamu GPIO vstupů a výstupů
GPIO name {in1, in2}, type=value:
Value can be {0, 1}
GPIO name {io1, io2}, type = direction:
Value can be {in, out}
URL:
https://<IP>/api/v1/gpio?
action=get&name=<string>&type=<string>
HTTP method:
GET
Request body:
N/A
Response
code:
Standard HTTP response code, treating syntactic errors