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 Získání seznamu GPIO vstupů a výstupů. Type can have the values {value, direction}.
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 |
Response data: | {"data":{"value":<bit>,"success":<boolean>}} |