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 |
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>" }, ... ] } } |